PHP Classes

Send Bulk Email

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  Send Bulk Email  >  (Un) Subscribe thread alerts  
Subject:Send Bulk Email
Summary:What's the fastest way of sending bulk email?
Messages:10
Author:f
Date:2008-03-03 16:06:11
Update:2008-03-04 22:12:11
 

  1. Send Bulk Email   Reply   Report abuse  
Picture of f f - 2008-03-03 16:06:11
Hi all,

Can anyone advise me on what the best way of:

1. Sending a single message to 6,000 recipients
2. Sending customised messages to 6,000 recipients

Thanks for your help.

  2. Re: Send Bulk Email   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-03 19:22:42 - In reply to message 1 from f
Take a look at the test_personalized_bulk_mail.php example. It demonstrates how to send efficiently personalized and non-personalized messages to many recipients.

  3. Re: Send Bulk Email   Reply   Report abuse  
Picture of f f - 2008-03-04 03:42:08 - In reply to message 2 from Manuel Lemos
Thanks.

One last question... if we have qmail is that the preferred class to use when dealing with bulk email?

Thanks again and well done on these fine classes.

  4. Re: Send Bulk Email   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-04 04:14:53 - In reply to message 3 from f
Yes.

  5. Re: Send Bulk Email   Reply   Report abuse  
Picture of f f - 2008-03-04 05:01:03 - In reply to message 4 from Manuel Lemos
It turns we're using Exim. What do you suggest?

  6. Re: Send Bulk Email   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-04 05:22:45 - In reply to message 5 from f
All Linux/Unix MTAs emulate sendmail, so if you use the sendmail class or even just the base class that uses the mail() function, that will be fine.

  7. Re: Send Bulk Email   Reply   Report abuse  
Picture of f f - 2008-03-04 07:55:35 - In reply to message 6 from Manuel Lemos
Thanks Manuel.

Last question... i promise...

Being on a WinXP development machine, i get the following error:

Warning: mail(): SMTP server response: 501 <Your Name <yourname@localhost.com>>: "@" or "." expected after "Your" in /script.php (..\email_message.php) on line 665

I experienced this problem with XPertMailer as well and believe it to be a result of the Win OS.

Is there a workaround?

  8. Re: Send Bulk Email   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-04 08:38:32 - In reply to message 7 from f
That is a PHP bug under Windows that nobody seemed to want to fix so far.

Try using just the address without a name as a workaround.

  9. Re: Send Bulk Email   Reply   Report abuse  
Picture of Alexander Alexander - 2008-03-04 21:35:06 - In reply to message 7 from f
Try to use under windows sendmail wrapper like http://www.indigostar.com/sendmail.htm

or some freeware analog like http://www.autocode.ru/update/sendfile.zip

  10. Re: Send Bulk Email   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-04 22:12:11 - In reply to message 9 from Alexander
You do not need a wrapper to send messages via SMTP with the MIME message page. Just use the smtp_message_class of this package. Since it is a sub-class of the email_message_class, it provides the same API.

This message also comes with a wrapper to replace the mail() function. It is named smtp_mail() and it provides the same functionality as the mail function, except that it does not have those bugs mentioned above and supports SMTP authentication and SSL connections (to send messages via Gmail SMTP server for instance).