Re: SMTP vs mail()
| From: | Richard Lynch | Date: | Fri, 11 Jan 2008 22:20:51 +0000 |
| Subject: | Re: SMTP vs mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267126@lists.php.net to get a copy of this message | ||
On Fri, January 11, 2008 10:29 am, Richard Heyes 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)?
If mail() is faster, prepare for the second coming... :-)
mail() fires up the send mail binary. For each call.
SMTP opens up a socket connection and then you just keep spewing data
at it and getting "OK" back (hopefully).
You'd have to have a dog-slow SMTP box and a very souped-up sendmail
box to get them on the same footing, almost for sure.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?