note 105441 added to function.mail
| From: | php dot lpatrick at spamgourmet dot com | Date: | Thu, 18 Aug 2011 08:31:12 +0000 |
| Subject: | note 105441 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182557@lists.php.net to get a copy of this message | ||
The above note for Windows on additional_headers' Return-Path is incomplete.
The From address is only used if the php.ini doesn't specify a sendmail_from.
As admin at chatfamy dot com stated in his comment 30-Jan-2007 08:37, you may need to overwrite that
with ini_set.
So: if no sendmail_from in php.ini: Return-Path = From, always.
If sendmail_from set in php.ini, Return-Path is set to that address, always.
If you want to choose the Return-Path from php on Windows, you cannot use Return-Path in the code,
use
ini_set ("sendmail_from","your@email.com");
before the mail command.
----
Server IP: 194.50.97.14
Probable Submitter: 83.134.107.119
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/105441
Del: integrated -- https://master.php.net/note/delete/105441/integrated
Del: useless -- https://master.php.net/note/delete/105441/useless
Del: bad code -- https://master.php.net/note/delete/105441/bad+code
Del: spam -- https://master.php.net/note/delete/105441/spam
Del: non-english -- https://master.php.net/note/delete/105441/non-english
Del: in docs -- https://master.php.net/note/delete/105441/in+docs
Del: other reasons-- https://master.php.net/note/delete/105441
Reject -- https://master.php.net/note/reject/105441
Search -- https://master.php.net/manage/user-notes.php