Difficulty with AOL and mail()
Posted: Wed Feb 09, 2005 12:49 am
I'm setting up a register/validate process for my website that involves e-mailing a user a link to validate his/her account. The problem is that for some reason, AOL users never get their message. It works with Hotmail, Yahoo, and Gmail, but not AOL/Netscape. Is there some kind of header I'm not including? Here's what I have right now:
I've tried plowing through the source for phpBB to try to copy its e-mail methods, but I'm not seeing anything too different from what I have.
Code: Select all
$to=$_POSTїsignup_email];
$from='From: email@site\r\n'.'Reply-To: email@site\r\n'.'Return-Path: email@site\r\n'.
'X-Mailer: PHP/'.phpversion();
$subject='Confirm Iamapowergamer.com Registration';
$body="Please follow the following link to confirm your registration at Iamapowergamer.com:
http://www.iamapowergamer.com/php/display.php?user=".$_POSTїsignup_user]."&confirm=".$confirm."
If you received this message in error, disregard it. The account will be cancelled shortly and no further messages will be sent.";
@mail($to, $subject, $body, $from);