note 92528 added to function.mail
| From: | php at caves dot org dot uk | Date: | Tue, 28 Jul 2009 14:32:15 +0000 |
| Subject: | note 92528 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158826@lists.php.net to get a copy of this message | ||
Setting an envelope-sender address avoids mail bounces annoying your system administrator.
If your mail cannot be delivered, it will be rejected to the address specified as the
"SMTP-envelope-from" (or the "envelope sender" or "return path",
depending on the terminology you like to use )
If you do not explicitly set an envelope-from address then PHP will default to the php.ini setting
which - if you have not set this yourself - could be nobody@[your-ISP-domain] or
anonymous@[your-ISP-domain], for example.
To avoid bothering the person at that address - or indeed, if you are wondering why you are not
receiving mail rejections yourself - you should use the "-f" option in the
<$additional_parameters> argument to set a valid address.
(and, by the way: If you do this, but you do not set a From: address in the
<$additional_headers> argument then PHP will set a default From: address of "From: Nobody
<your-envelope-sender-setting>". ).
----
Server IP: 87.124.35.190
Probable Submitter: 83.104.168.235
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/92528
Del: integrated -- https://master.php.net/note/delete/92528/integrated
Del: useless -- https://master.php.net/note/delete/92528/useless
Del: bad code -- https://master.php.net/note/delete/92528/bad+code
Del: spam -- https://master.php.net/note/delete/92528/spam
Del: non-english -- https://master.php.net/note/delete/92528/non-english
Del: in docs -- https://master.php.net/note/delete/92528/in+docs
Del: other reasons-- https://master.php.net/note/delete/92528
Reject -- https://master.php.net/note/reject/92528
Search -- https://master.php.net/manage/user-notes.php