Re: mail() usage in for loops
| From: | Joel Rees | Date: | Mon, 11 Aug 2003 08:26:30 +0000 |
| Subject: | Re: mail() usage in for loops | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159114@lists.php.net to get a copy of this message | ||
> When you say batches of 500 , would that mean you put pauses between
> each batch ? Or do you prepare each email as a file and then send them
> out in batches of 500? Whats the time space between each batch? Assuming
> I was stuck with sendmail, what would you recommend ?
Well, I don't know what Michael is doing, but we found that mail tended
to be slow. If we didn't wait for each message, we tended to cause
errors. So we wrote a service that called a PHP routine to ship the
messages one at a time, and check that the process had completed for
each message before sending the next.
You can get mass-mailing systems written in Perl, I think there are now
some available for PHP.
--
Joel Rees, programmer, Systems Group
Altech Corporation (Alpsgiken), Osaka, Japan
http://www.alpsgiken.co.jp