Hi Everyone,
I am currently developing an application that administers and allows administrators to send to a mailing list.
The list is about 1000 members long and when a message is composed, the database of members is queried and their email addresses, along with the message itself, is passed to mail() to be sent.
The problem is the "successful" page can take up to a minute to a minute and ahalf to load, presumably due to the volume of email addresses being sent out to.
So what I'd like to do is to create a "progress" bar, a percentage indicator, of how much of the email is sent.
Is there an easy way to do this?
I mean it occured to me one easy way would be simply to LIMIT the MySQL queries to 100 each time, and do a 100-person query, send, then load a new page with GET with the next 100, until the cycle is complete. But that seems a bit clunky.
Is there a better way and is there any outofthebox code out there to do it for me?
Cheers
Nick.