note 92528 deleted from function.mail by cmb

From: Date: Sun, 22 Sep 2019 08:12:17 +0000
Subject: note 92528 deleted from function.mail by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212330@lists.php.net to get a copy of this message
Note Submitter: php at caves dot org dot uk ---- 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>". ).

« previous php.notes (#212330) next »