
4cdg
User
Sep 8, 2011, 10:13 AM
Post #3 of 8
(2429 views)
Shortcut
|
|
Re: [robin] password reminder not working after cms upgrade
[In reply to]
|
Can't Post
|
|
i does still send the email. I am not sure what part of code is causing error, it says line 51 in error message, I haven't changed anything from the example that comes with the plugin. I attached the document to the last message, here is what lines 38 to 52 look like $emailTemplate = "emails/user-password-request.php"; $emailHeaders = emailTemplate_load(array( 'template' => websiteLogin_pluginDir() . "/$emailTemplate", 'subject' => '', // set in template 'from' => '', // set in template 'to' => $user['email'], 'placeholders' => array( 'username' => $user['username'], 'loginUrl' => "http://" . $_SERVER['HTTP_HOST'] . $GLOBALS['WEBSITE_LOGIN_LOGIN_FORM_URL'], 'resetUrl' => "http://" . $_SERVER['HTTP_HOST'] . $GLOBALS['WEBSITE_LOGIN_RESET_URL'] . $resetQuery, ), )); $mailErrors = sendMessage($emailHeaders); if ($mailErrors) { die("Mail Error: $errors"); }
|