Welcome Guest, Not a member yet? Register   Sign In
Question about e-mail sending app, send 50, wait 15 min. sendo more 50...
#3

[eluser]Rick Jolly[/eluser]
Yes, a cron job as inparo suggested. You'll find lots of info if you do a search for mass email in this forum. There is some info here:http://ellislab.com/forums/viewthread/62395/

You could do something simple like this:

1) Set a cron job to call your script every 15 minutes. On a most hosts you can set a cron job through the control panel or ssh if enabled. There are also third-party sites where you can register scheduled tasks to call your script.
2) Queue email info as rows in a database. Either queued by auto-increment id or timestamp.
3) When your script is called, get the oldest 50 email rows from your database using order by and limit of 50.
4) Send the emails and update each row with a flag to indicate the email is sent or simply delete the row.


Messages In This Thread
Question about e-mail sending app, send 50, wait 15 min. sendo more 50... - by El Forum - 04-07-2008, 03:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB