Hi there,
I have to build a script to send mass emails.The script will fetch database for users and send one by one. There will be the need to throttle email sending, due to server limits. For this, is it a good idea to use sleep() between each email?
Another question.. while the script is being executed, I would like to echo the sending progress, like "3/100 emails sent", and so forth, and maybe with and loading gif or progress bar. How can I accomplish that? I have tried, but echo occurs only after loop ends...
Any help would be appreciated. Thanks in advance.
Cheers,
MP
Email sending
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Email sending
Swiftmailer has all the functionality you mentioned (through various plugins). See http://swiftmailer.org