note 111199 deleted from function.mail by aharvey
| From: | aharvey@php.net | Date: | Fri, 25 Jan 2013 02:46:09 +0000 |
| Subject: | note 111199 deleted from function.mail by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193384@lists.php.net to get a copy of this message | ||
Note Submitter: russellengland at gmail dot com
----
Its an odd one..
If the recipients are all on Gmail / Google Apps, then not all of the email is received when mail()
is used in a foreach loop.
It isn't an error with php, our mail server log says they have been sent. Tried it with Yahoo
accounts and they all received their email.
I put in a sleep(1) and all the emails to Gmail were received okay, so its an issue with Gmail.
foreach ($users as $user) {
sleep(1);
mail(...);
}