Re: SMTP vs mail()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux