Jump to content

Best way to send 1000+ emails...


corbin

Recommended Posts

I could easily send emails in a while loop from results pulled from a DB, but that seems like it would be resource intensive... I guess i could build the to field by a while loop and like $to .= ... but then the mail server would go crazy and the emails would be shown to everyone it was mailed to...
[quote author=corbin link=topic=115974.msg472337#msg472337 date=1164237613]
... What would be a better method to do this?
[/quote]

Count the number sent and every 100 (or so) use php's sleep() function to give the script a few seconds delay and avoid any overload on the mail server.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.