note 104054 deleted from function.mail by cmb
| From: | cmb@php.net | Date: | Sun, 21 Jul 2019 08:52:04 +0000 |
| Subject: | note 104054 deleted from function.mail by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211648@lists.php.net to get a copy of this message | ||
Note Submitter: vigo dot von dot harrach at gmx dot de
----
If using sendmail as transport agent, setting the "DeliveryMode" to "background"
(asynchronous) instead of the default "interactive" (synchronous) makes mail() a lot
faster, while still sending immediately.
You can either use the "additional parameters", e.g. mail($to, $subject, $message,
$headers, 'O DeliveryMode=b'), or make this mode default by changing php.ini's
"sendmail_path" to 'sendmail -t -i -O DeliveryMode=b'.