Re: Fatal error: Maximum execution time of 30 seconds exceeded

From: Date: Sun, 13 Oct 2002 18:50:27 +0000
Subject: Re: Fatal error: Maximum execution time of 30 seconds exceeded
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119804@lists.php.net to get a copy of this message
scott wrote:
Hello Trying to send a html email to 5000 people on a list Keep getting Fatal error: Maximum execution time of 30 seconds exceeded Any pointers on the best way to achieve this lengthily operation without the script failing? Best regards Scott If the email is the same for all people on the list (i.e. not customised) then use the CC field and don't send 5000 emails. If they are customised then I'd recommend you queue them (fast) rather than wait whilst they are actually sent (normal). This can be done with sendmail and qmail, I assume other MTAs too. If you can't queue the emails then perhaps use cron (or at) to send them outside of a web page (you can still use PHP as CLI or with Lynx).
If you look through the archives this was discussed a month or so back in great detail. One thread was "PHP / Bulk Email" on 4th Sept, another "bulk mail()" and "sending 1000 emails to subscri.." both 12th June. HTH Chris

« previous php.general (#119804) next »