note 108340 deleted from function.mail by cmb

From: Date: Sun, 21 Jul 2019 08:28:16 +0000
Subject: note 108340 deleted from function.mail by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211633@lists.php.net to get a copy of this message
Note Submitter: Marc Parillo ---- If you follow the suggested format for the $to field, you can list multiple addresses in a comma-delimited string with spaces. The spaces could be an issue if you're experiencing a similar problem. I was unable to send an e-mail to multiple addresses using that format. It started working for me when I removed all of the spaces in the $to string. Example: <?php $to = 'nobody@example.com,anotheruser@example.com,yetanotheruser@example.com'; // no spaces mail($to, 'the subject', 'the message'); ?>

« previous php.notes (#211633) next »