Posts: 133
Location: durango, colorado
|
Heya,
I've got a nice CMS that I set up for my clients, over the years it has evolved to be a pretty nice package. A new feature is a mailing list manager, basically I have one table that is email addresses (all collected via the site when someone signs up - no spamming here) and a second table that makes up the actual email.
So the owner of the business goes to "email" in their manager and selects a mail that they want to send (or creates the mail) then opts to see if they want to send it to the whole list or to just one address to test.
The problem starts here
I have a while loop that goes through the email table and sends the mail to each address on the list. I'm guessing that there must be a more efficent way to do this. Now when i execute that command my browser will time out before it goes through all the emails, however, the script is fully executing, as the last people on the list did indeed receive the mail.
Should I make an array of addresses and include them as BCC? How many addresses can you put as BCC? I'd like to basically make it less resource intensive and I'd like to know that it finished rather than having my browser time out and wonder if it all happened.. Thanks in advance
Cheers... -e
__________________
_______________________________
Feeling down? listen to Please login or register to view this content. Registration is FREE
|