note 63101 added to function.mail
| From: | steve at stevewinnington dot co dot uk | Date: | Mon, 13 Mar 2006 16:24:51 +0000 |
| Subject: | note 63101 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105718@lists.php.net to get a copy of this message | ||
To all you guys out there having problems with mail scripts throwing back this (and you know your
scripts are right!!)...
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom
"From:" header missing in:
I had started seeing this after moving some scripts from 4.3 servers to 5.
a dirty get around is using
ini_set ("sendmail_from","a.body@acompany.com");
to force the From header.
Not ideal but it works.
;)
----
Server IP: 85.116.0.130
Probable Submitter: 82.152.40.35
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- http://master.php.net/note/edit/63101
Del: integrated -- http://master.php.net/note/delete/63101/integrated
Del: useless -- http://master.php.net/note/delete/63101/useless
Del: bad code -- http://master.php.net/note/delete/63101/bad+code
Del: spam -- http://master.php.net/note/delete/63101/spam
Del: non-english -- http://master.php.net/note/delete/63101/non-english
Del: in docs -- http://master.php.net/note/delete/63101/in+docs
Del: other reasons-- http://master.php.net/note/delete/63101
Reject -- http://master.php.net/note/reject/63101
Search -- http://master.php.net/manage/user-notes.php