Re: SMTP vs mail()
| From: | Eric Butera | Date: | Fri, 11 Jan 2008 18:26:19 +0000 |
| Subject: | Re: SMTP vs mail() | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267095@lists.php.net to get a copy of this message | ||
On Jan 11, 2008 1:22 PM, Jochem Maas <jochem@iamjochem.com> wrote:
> Eric Butera schreef:
> > On Jan 11, 2008 11:33 AM, Stut <stuttle@gmail.com> 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.
>
>
> >
> > I used to use htmlMimeMail, but now I use Zend_Mail as it has a better
> > API and is also faster in regards to the quoted printable encoding.
> >
>
>
Weird! I've never heard of that but I really don't doubt it. Working
with e-mail is the least favorite part of my work.