note 35572 deleted from function.imap-mail-compose by cmb
| From: | cmb@php.net | Date: | Mon, 12 Oct 2020 07:13:26 +0000 |
| Subject: | note 35572 deleted from function.imap-mail-compose by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215575@lists.php.net to get a copy of this message | ||
Note Submitter: thomas dot hebinck at digionline dot de
----
imap_mail_compose modifies $envelope! Subsequent calls with the same $envelope may not work
depending on the contents of the header. The best way (at least it works) I found, is:
$temp_env=unserialize(serialize($envelope));
$mail=imap_mail_compose($temp_env,$body);
(just $temp_env=$envelope does not work either)