Re: Unable to send mail from PHP to AT&T e-mail address

From: Date: Wed, 22 Apr 2009 22:43:33 +0000
Subject: Re: Unable to send mail from PHP to AT&T e-mail address
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-291837@lists.php.net to get a copy of this message
Any light anyone can throw on the 'nobody@myserver.com' address would be most welcome.
It is using the apache user @ your host name as the default. Try this: ini_set('sendmail_from', 'whatever@wherever.com');
I will try this but I do not understand why it should work. I have a 'From:...' entry in my headers. Why is this not being used as the primary from address and why is 'nobody@myserver.com' being added instead as the first from address ? In other words, I can understand if I supply no 'From:...' header entry that a default 'nobody@myserver.com' would be used but I do not understand why it is used even when I supply a 'From:...' header entry.
"From: " is used by your mail client to show who it's from. the ini_set (or you can set the 5th param to the mail() function) is a return-path. If the message bounces (recipient's mailbox full, server down, whatever the reason) it gets delivered to that address. They serve different purposes. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#291837) next »