Forum Moderators: coopster

Message Too Old, No Replies

Bulk E-Mail Thru PHP

Suggestions needed for Newsletter

         

BushMackel

4:07 am on Apr 2, 2007 (gmt 0)

10+ Year Member



Hey all,

My client has a website that offers a newsletter to readers. They signup for the newsletter and I store their e-mail into a SQL database. I want to enable my client to use the data in that database to send an e-mail to these ppl through a page on their site. ...

I guess the real question is, would it be ok to do something like,

FOR each EMAIL in DATABASE
mail($to,$subject,$body,$headers);

Or is that too intensive on the server?...I don't expect more than a thousand people to ever sign up for this thing. Thanks in advance!

eelixduppy

4:13 am on Apr 2, 2007 (gmt 0)



You should look into using Pear's Mail package [pear.php.net] or Mail Queue [pear.php.net] as they are better for sending larger amounts of email. Read up on their documentation for more information.

Good luck!

BushMackel

4:14 pm on Apr 2, 2007 (gmt 0)

10+ Year Member



Good information, thanks!