On Fri, January 11, 2008 12:22 pm, Jochem Maas wrote: > Eric Butera schreef: >> On Jan 11, 2008 11:33 AM, Stut <stuttle@xxxxxxxxx> wrote: >>> 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. >> >> Also don't forget the part where you shouldn't disconnect and >> reconnect between mails sent. > > indeed but I have experienced situations where the SMTP server refuses > more than X number of messages on any one connection ... which meant > having to get the script to disconnect/reconnect every 200 (iirc) odd > emails sent. SMTP software can be configured that way, or not. But it SHOULD be sending proper response codes when it decides to quit on you, and your code *SHOULD* be ready to deal sensibly with those codes, and any others defined in the SMTP spec. -- 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