Re: SMTP vs mail()

From: Date: Fri, 11 Jan 2008 17:06:14 +0000
Subject: Re: SMTP vs mail()
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-267088@lists.php.net to get a copy of this message
On Jan 11, 2008 11:36 AM, Richard Heyes <richardh@phpguru.org> wrote: > >> Bearing in mind I haven't yet done any benchmarks, which do you think > >> is faster - SMTP with multiple RCPT commands or the PHP mail() > >> function (with it launching a separate sendmail process for each > >> mail() function call)? > > > > No brainer, SMTP will almost certainly be faster. My mailing list system > > (written in PHP obviously) can dump 600k customised emails to the local > > SMTP server in a couple of hours. Doing the same with the mail command > > took over 24 hours. How much slower will depend a lot on how you have > > configured sendmail, but it's never going to be faster than a socket > > connection to the local SMTP server. > > Thanks. Obviously, it will also make a huge difference between a local SMTP and remote SMTP. -- </Dan> Daniel P. Brown Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since Nineteen-Seventy-[mumble].

« previous php.general (#267088) next »