Hi Sudheer, Can you please put more focus or sample code for the second option which you have suggested "Send the email after you flush the output.". Regards, Manoj On Tue, Mar 17, 2009 at 7:28 PM, Sudheer Satyanarayana < sudheer.s@xxxxxxxxxxxxxxxxx> wrote: > 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: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, > Personal: http://sudheer.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >