Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Implement delay

the mail() function

Moderators: macek, egami, gesf

Implement delay

Postby dabera » Wed Dec 05, 2012 11:00 am

Hi Guys,

I have a php script which send email using the email addresses stored in mySQL DB. But Since my website host limit the number of emails sent to 15 / minute, I need to include some kind of delay. Which means, the emailing system shouldn't send more than 15 emails/ minute. Is there a way to do that.
Thanks for your help in advance.

Daniel A.
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Dec 05, 2012 10:53 am

Re: Implement delay

Postby egami » Fri Dec 14, 2012 8:44 am

I am going to go out on a limb here and say, no.

A script's maximum execution time (may or may not be modified, depends on your provider) won't allow you to do this. The only way it can be done is by using some sort of crontab and marking the email addresses as "sent" so that every 15 minutes when your script executes that it doesn't send the same email out to the same people..

Good luck.
User avatar
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.