Posted by Adam on 03/07/06 05:12
On Wed, 14 Dec 2005 12:10:49 +0100, BLob wrote:
>Each time a mail is correctly sent, I write it in the database.
>And I stop as soon as there is an error.
>Then I can decide to loop over all the users who I didn't send the mail to
>or to loop over them 100 by 100 or 500 by 500.
>Each time I run the script it sends the mail only to users who did not
>receive it, until there are no more users.
Blob - I also loop through (and in batches) ... but your idea of
flagging an address as "sent/OK" is a good one - many thanks.
Invaluable for those awful early testing stages of a mail-out when you
(embarassingly) send to some users more than once ;-)
Adam.
[Back to original message]
|