note 24496 added to ref.mail

From: Date: Mon, 19 Aug 2002 16:43:18 +0000
Subject: note 24496 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-35198@lists.php.net to get a copy of this message
I had a problem with the outgoing email from PHP: The emails were going OUT but not being recieved by SOME users. Specifically, users with accounts within my own ISP were fine (COX.NET), my .NAME account was OK, and others. AOL users got NOTHING as well as some other users. The problem was was with PHP.INI settings. Notice the default setting: sendmail_from = noreply@noreply.com ; for Win32 only This affects the "return path" header (on my system anyway) REGARDLESS of the From header entry. Apparently some anti-spam filters look at the return path to see if it is legit and, if not, drop the message. If you leave this as is it will work fine... for SOME mail transports, but not all!! For it to work properly, I had to configure it to be an email address within the domain of my ISP. Note that I also have the SMTP server set to my ISP's main outgoing SMTP server. Apparently, any address will work as long as it is properly formatted and from the domain of the SMTP server. My setting now reads similar to: sendmail_from = legitemail@cox.net ; for Win32 only I haven't verified it works in all cases, but it works at least for AOL. I'm fairly confident it will work for all my users, I'll try to remember to post more info if I find out anything else. BTW: I didn't have to change the \r to \r\n with my configuration (XP/IIS5), but I have had trouble with that in other platforms (e.g. NT4/IIS4). You might want to look at that as well. -- http://www.php.net/manual/en/ref.mail.php http://master.php.net/manage/user-notes.php?action=edit+24496 http://master.php.net/manage/user-notes.php?action=delete+24496 http://master.php.net/manage/user-notes.php?action=reject+24496

« previous php.notes (#35198) next »