Manoj Singh wrote:
Hi Guys,

I am creating a page which submits the form through Ajax request & the
submitted page is sending the mails to n number of users. Now until the mail
sends or the page process completed the end user has to wait.

Is it possible that server sends the response to the client & then start
processing so that the client doesn't have to wait for the server response.

I can think of two ways to solve this apart from creating an Ajax request:

1. Queue the emails. Run a cron job to process the queue later.
2. Send the email after you flush the output.


With warm regards,
Sudheer. S
Business:, Tech stuff:, 

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to