This is a discussion on Mailing List Programme within the PHP General forums, part of the PHP Programming Forums category; Hello: I have created an application to read email addresses from a list and to send emails. The problem now ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello:
I have created an application to read email addresses from a list and to send emails. The problem now I am facing is, if the list is very long then I am getting an error message in the browser "Server Timed Out". How can I display a confirmation message and continue sending the emails from the server? That is, trigger a separate script (not related to browser) on the server which handles the emails and then return a success message. Can anybody help me to find out a logic or script on this. Sheni R Meledath sheni@cyber-gear.com |
|
|||
|
You can send some output now and then to the browser (and flush()), or
you can send the emails in steps, send first 300 emails, output a form with hidden fields (and text "sending emails") containing the offset and use onload="window.document.forms[0].submit()" to send the form and so on. Sheni R. Meledath wrote: > Hello: > > I have created an application to read email addresses from a list and to > send emails. The problem now I am facing is, if the list is very long > then I am getting an error message in the browser "Server Timed Out". > How can I display a confirmation message and continue sending the emails > from the server? That is, trigger a separate script (not related to > browser) on the server which handles the emails and then return a > success message. Can anybody help me to find out a logic or script on this. > > > Sheni R Meledath > sheni@cyber-gear.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|