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

From: Date: Wed, 30 Jul 2008 05:45:08 +0000
Subject: Re: limiting the amount of emails sent at a time in a batch send
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-277453@lists.php.net to get a copy of this message
>> 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 >> >> > Then what do you do to get the next 100 emails without sending the same > ones Re-read the reply. After each email is sent, the timestamp is set. The original query looks for timestamp fields that are not set. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#277453) next »