Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread brian
Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This script is runs by cron so it is running in the background. How would I do this

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 1:27 PM, brian [EMAIL PROTECTED] wrote: Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This script is runs

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread brian
Andrew Ballard wrote: On Thu, Jul 31, 2008 at 1:27 PM, brian [EMAIL PROTECTED] wrote: Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today.

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 4:24 PM, brian [EMAIL PROTECTED] wrote: Andrew Ballard wrote: On Thu, Jul 31, 2008 at 1:27 PM, brian [EMAIL PROTECTED] wrote: Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Richard Kurth
Andrew Ballard wrote: On Thu, Jul 31, 2008 at 4:24 PM, brian [EMAIL PROTECTED] wrote: Andrew Ballard wrote: On Thu, Jul 31, 2008 at 1:27 PM, brian [EMAIL PROTECTED] wrote: Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Chris
brian wrote: Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This script is runs by cron so it is running in the background. How

[PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Richard Kurth
I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This script is runs by cron so it is running in the background. How would I do this and is it the best

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Andrew Ballard
On Tue, Jul 29, 2008 at 4:52 PM, Richard Kurth [EMAIL PROTECTED] wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This script is runs by cron so it

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Richard Kurth
Andrew Ballard wrote: On Tue, Jul 29, 2008 at 4:52 PM, Richard Kurth [EMAIL PROTECTED] wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Micah Gersten
Here's a PEAR package that handles this: http://pear.php.net/package/Mail_Queue/ Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Stephen
I would use a temporary table to hold all the email created in one job. Have a status field marked as sent, waiting or open. Have a cron job set 'x' number of open emails to waiting. Execute periodically. Have a cron job to send all waiting email and update status to sent. Execute

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Chris
I've done something very similar. I have a delivery timestamp column in the table that is initially NULL, and I set it to UTC_TIMESTAMP() for each row as I send the message. My query looks like this then: SELECT * FROM mail_queue WHERE delivery_timestamp IS NULL LIMIT 100. Andrew