Welcome Guest, Not a member yet? Register   Sign In
Problem with timing to send mails, sleep of 15 minutes
#2

[eluser]gon[/eluser]
Keeping a PHP script running for hours is not a good idea, from my experience.
I would insert email recipients in a DB table,
then would call a PHP script every 15 minutes using CRON. The script would send 50 emails from the DB, erasing them, and exit.
If there is nothing to send just exit and you're done.


Messages In This Thread
Problem with timing to send mails, sleep of 15 minutes - by El Forum - 06-30-2008, 08:25 PM
Problem with timing to send mails, sleep of 15 minutes - by El Forum - 07-01-2008, 02:32 AM
Problem with timing to send mails, sleep of 15 minutes - by El Forum - 07-01-2008, 04:58 AM
Problem with timing to send mails, sleep of 15 minutes - by El Forum - 07-01-2008, 05:10 AM
Problem with timing to send mails, sleep of 15 minutes - by El Forum - 07-01-2008, 06:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB