On UNIX PHP hands the message off to sendmail to be delivered. You want this stuff to happen out of band, it makes no sense to sit there and watch a browser spin while something is off communicating with an smtp server.
So, depending on your sendmail configuration, and how you are invoking sendmail (see your php.ini file) it will be non-blocking if you tell sendmail to simply queue it. For high-volume mail delivery, you should be using a dedicated mailing list system. Have PHP send a single message to the list and let the list system do the mass-delivery for you. Right tool for the job and all... -Rasmus On Tue, 13 Aug 2002, Jean-Christian Imbeault wrote: > Is the mail() function blocking or non-blocking? Does anyone know how I > can make it non-blocking? I don't want to have my script waiting on > mail() to return ... > > Also I read that mail() should not be used for large volumes of mail. > How large is "large"? Can mail() handle a couple of messages per second? > > If not what other alternatives are there for sending mail using PHP? > > Jc > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php