note 5126 deleted from function.mail by jimw
| From: | jimw@php.net | Date: | Wed, 31 Oct 2001 23:00:23 +0000 |
| Subject: | note 5126 deleted from function.mail by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19853@lists.php.net to get a copy of this message | ||
My main problem was that the fqdn of the machine wasn't available via RDNS - therefore was
being rejected as sendmail attempted to connect with a MAIL FROM: nobody@machine.mydomain.com.
I managed to get round it by editing /etc/httpd/conf/php3.ini and changing the sendmail command line
to be 'sendmail -t -f validaccount@mydomain.com' - bounces will be sent to this addy, so
keep it a live one, and any "Return-Path" headers in the mail() command are ignored, but
the "From:" headers take over as far as the end client is concerned.