Hello
What is the best way to perform mass mailing in PHP?
I don't want to loop at every email and send the message, yet not all users will receive exactly the same message...
regards
| SitePoint Sponsor |


Hello
What is the best way to perform mass mailing in PHP?
I don't want to loop at every email and send the message, yet not all users will receive exactly the same message...
regards





Make an email queue system and then send a certain amount per minute.
Have a good day.





If you want to send different messages you'll need to send different messages
There's no way to make a single call to mail() but have different content to different recipients. It doesn't matter how much the body varies by.
If your sending large volumes you probably need either to use sleep or cron jobs (or both) to throttle the sending. Especially if you're on a shared server.
Swift Mailer is good, it might be of use to you.
You can setup a cron job for doing this.
In the task you can setup the number of mail to send.
If you can't setup cron. There is some web site who can give you this service by dowloading a page at regular time.


Alright, but that requires crone jobs right?Make an email queue system and then send a certain amount per minute.
What if I don't want to use crone jobs?
You can use a script which will download himself via curl.
Normally recursion don't stop...
Bookmarks