Candrias77
05-10-2003, 11:34 AM
Hi there.
I am using mail() to send an email to my email database (stored online in a MySQL database). I have a loop which extracts each name and email address, customizes the mail BODY and uses mail() to send the message off.
Problem = I have over 1000 email addresses and my webhost is not going to be happy with this all this mail going off at once!
Solution = I was hoping to use some kind of time delay so that every 10 mins 50 emails are sent, or something like that.
Unfortunately I am not sure where to start with this one, is it possible to send all the emails to the server and let it take care of the work with the delays, or do I nead to leave the php page open and refreshing every 10mins, etc. etc.?
I'm sure that this must be a fairly common problem but I could not find much help after searching, perhaps I am just using the wrong terms (or looking for the wrong solution).
Any thoughts on the best method would be much appreciated, thanks.
I am using mail() to send an email to my email database (stored online in a MySQL database). I have a loop which extracts each name and email address, customizes the mail BODY and uses mail() to send the message off.
Problem = I have over 1000 email addresses and my webhost is not going to be happy with this all this mail going off at once!
Solution = I was hoping to use some kind of time delay so that every 10 mins 50 emails are sent, or something like that.
Unfortunately I am not sure where to start with this one, is it possible to send all the emails to the server and let it take care of the work with the delays, or do I nead to leave the php page open and refreshing every 10mins, etc. etc.?
I'm sure that this must be a fairly common problem but I could not find much help after searching, perhaps I am just using the wrong terms (or looking for the wrong solution).
Any thoughts on the best method would be much appreciated, thanks.