Re: PHP broadcast mailer
| From: | Manuel Lemos | Date: | Sat, 17 Oct 2009 20:08:54 +0000 |
| Subject: | Re: PHP broadcast mailer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299021@lists.php.net to get a copy of this message | ||
Hello,
on 10/17/2009 02:41 AM Brian Hazelton said the following:
> I am in charge of an email newsletter list and making sure it gets sent
> out in time. My problem is I have never done broadcast emailing and
> right now we have 400 subscribers but want to build a system that can
> scale well regardless of the number of subscribers. Right now I use
> mysql to store the email and use phpmailer in a loop to send an email to
> each of the emails in the db, it is already slow with just 400(takes
> around 10 min (i think that's slow isnt it?). Has anyone built a
> broadcast email script and willing to help me?
I use the MIME message mailer class which has optimizations specifically
for sending messages to many recipients. Take a look at the
test_personalized_bulk_mail.php example script.
Also keep in mind that for sending many messages, queueing messages in
an SMTP server is the slowest method of all. Read this article for more
details:
http://www.phpclasses.org/blog/package/14/post/1-Sending-messages-to-many-recipients-via-SMTP-in-PHP.html
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/