RE: [PHP] sendmail question
| From: | Mathias Meyer | Date: | Fri, 24 Nov 2000 11:43:52 +0000 |
| Subject: | RE: [PHP] sendmail question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26943@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Ahmed [mailto:ahmed@mazika.com]
> Sent: Friday, November 24, 2000 12:34 PM
> To: php-general@lists.php.net
> Subject: [PHP] sendmail question
>
>
> Hi all,
> I still have this question, how to make php script sends
> an email to a
> list of people in a database in the background ? in other
> words how to send
> an email to 50,000 email address without getting the script
> to timeout ?
>
You'll have to set the max_execution_time to a very high value or to zero ;)
But indeed using PHP to send email to about 30.000 email-addresses is not
performant IMHO. I use a script to send a newsletter to about 1000 people
and it takes about 15 minutes. you can imagine, what time it takes, to send
an email to 30.000 people. and i dont use the mail() function a thousand
times, but use sendmail. If you wanna try it, use the Bcc:-Field to specify
all of the recipients.
Have fun tryin it.
Best Regards,
Mathias Meyer
http://www.dynamic-webpages.de