note 125498 deleted from function.mail by crell
| From: | crell@php.net | Date: | Tue, 12 Apr 2022 01:10:05 +0000 |
| Subject: | note 125498 deleted from function.mail by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218237@lists.php.net to get a copy of this message | ||
Note Submitter: John dot php at yaph dot org dot uk
----
I found I needed to use the additional parameter -f$envelope_sender to send subscribe messages to my
email list manager (Enemies of Carlotta, YMMV). Simply setting From: email@address.tld in additional
headers wasn't sufficient.
So to subscribe to mylist@example.com via a PHP script I call
mail("mylist-subscribe@example.com", $emailSubject, $body, '',
"-f$email_to_subscribe");