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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php