Page 1 of 1

Difficulty with AOL and mail()

Posted: Wed Feb 09, 2005 12:49 am
by Preeminence
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:

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);
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.

Posted: Wed Feb 09, 2005 12:52 am
by feyd
it may be your usage of string literals in the headers..

Posted: Wed Feb 09, 2005 1:10 am
by Preeminence
Well, I went ahead and changed it to

Code: Select all

$efrom='From: signup@iamapowergamer.com\r\n';
$repto='Reply-To: preeminence@hotmail.com\r\n';
$retpath='Return-Path: preeminence@hotmail.com\r\n';
$mailer='X-Mailer: PHP/'.phpversion();
$from=$efrom.$repto.$retpath.$mailer;
@mail($to, $subject, $body, $from);
But still nothing. In the header I'm seeing at hotmail, there are two things which look like potential culprits, one being a line "Precedence: Bulk," the other "Received: from [66.157.30.217](IP may be forged by CGI script)by infong222.perfora.net with HTTP;" There are other IP-related issues in there, too. Also, the Return-Path is "Return-Path: cgi-mailer-bounces-95250296@perfora.net" Any thoughts on why the return-path wouldn't be working? I'm beginning to think this is just a problem of a crappy host, I can't get into anything that gives me STMP settings or another way to send mail.