Sam Collett
unread,Nov 6, 2009, 12:32:52 PM11/6/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pixie
I have recently moved Pixie onto a Windows 2008 host and discovered
that when I use the forgotten password link, the email never arrives
after I submit the form.
Through trying to find a solution, it looks like this is because it is
not 'From' the same domain as the website (since it never arrives, I
have no idea what 'From' is set to, probably localhost).
If anyone has this problem, it should be a simple fix. This is what
works for me:
After line 35 of admin/admin/modules/mod_login.php put in the
following:
$headers = "From: postmaster@{$_SERVER['HTTP_HOST']}"."\r\n".
"X-Mailer: PHP/" . phpversion();
The change the next line to:
mail($email, $subject, $emessage, $headers);
The email should then arrive.
Is anyone able to test this to see if it works for those that didn't
have the problem in the first place, just to see if this breaks
anything?
--Sam