PHP: send email cause timeout
<p>i have develop a eblast application</p>

<p>The program is use to send a email to some recipients</p>

<p>the recipients email will be grab from a xls file</p>

<p>and the program has set it to send 10 email each time and sleep 30 seconds</p>

<p>and use ob_flush(); and flush(); to out put the steam of the process and display in frontend</p>

<p>yesterday my client test it with 9000 recipients (it should take arround 10hours)</p>

<p>and he told me the program has stop, and i found the log file has mark that the program has stopped at 65XX emails,  </p>

<p>that mean the program has already sent 6XXX email (arround 7hour)</p>

<p>and this problem will never happen in cron job,but only happen when exec though the web browser</p>

<p>my frd told me because it is all about long time sleep?</p>

<p>and he suggest to use cron job, however my application already has cron job to set,</p>

<p>the client just want to have a feature to send the email immediately  </p>

<p>any other solution to solve? use php call a linux command and excu a php email sending script?</p>
