Email sending

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
marcopais
Forum Newbie
Posts: 3
Joined: Fri Mar 13, 2009 5:03 am

Email sending

Post by marcopais »

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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Email sending

Post by John Cartwright »

Swiftmailer has all the functionality you mentioned (through various plugins). See http://swiftmailer.org
Post Reply