note 125498 added to function.mail

From: Date: Sat, 07 Nov 2020 19:37:27 +0000
Subject: note 125498 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-215827@lists.php.net to get a copy of this message
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"); ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.174 (proxied: 82.6.149.242) ---- Manual Page -- http://php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/125498 Del: integrated -- https://master.php.net/note/delete/125498/integrated Del: useless -- https://master.php.net/note/delete/125498/useless Del: bad code -- https://master.php.net/note/delete/125498/bad+code Del: spam -- https://master.php.net/note/delete/125498/spam Del: non-english -- https://master.php.net/note/delete/125498/non-english Del: in docs -- https://master.php.net/note/delete/125498/in+docs Del: other reasons-- https://master.php.net/note/delete/125498 Reject -- https://master.php.net/note/reject/125498 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#215827) next »