RE: [PHP] Re: send mail to mailing list using mail() or smtp?
| From: | Niklas Lampen | Date: | Sat, 25 Aug 2001 08:08:09 +0000 |
| Subject: | RE: [PHP] Re: send mail to mailing list using mail() or smtp? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64414@lists.php.net to get a copy of this message | ||
I'm sending a huge amount of mails with php. How can I send mail directly to
the smtp server? Right now I'm using pipe to send each mail to sendmail.
Works fine with about 35 000 mails, but it takes ages to run.
What would be the smartest way?
Thanks!
-----Original Message-----
From: Richard Lynch [mailto:ceo@l-i-e.com]
Sent: 25. elokuuta 2001 3:54
To: php-general@lists.php.net
Subject: [PHP] Re: send mail to mailing list using mail() or smtp?
> My question - is this going to work for a few thousand emails?
Depends on your server.
> What
> about 100,000?
No way.
> Would it be better to send the mail directly to the
> smtp server?
Yes.
> Can you foresee any problems?
Several. The first one is you didn't read the archives or look for
pre-existing code to talk to SMTP directly. :-)
Manuel's upperdesign.com has one, and there are plenty of others. You could
roll your own -- I did, so it can't be too tricky. :-)
Also, at that volume, I think you're going to run into trouble just in
talking to the all the SMTP servers. I *BELIEVE* one major speed-up can be
achieved by sorting the outgoing emails by their recipient's domains...
You may want to research how "real" mailing list software deals with this if
you actually expect to hit 100K addresses.
If they're all the same email, you'd be *WAY* better off just interfacing to
majordomo, ezmlm, SmartList, or whatever other mailing list software was
designed to handle this.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net