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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to