Re: Send mail to multiple address
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Send mail to multiple address

From: Adam <anon@nowhere.com>
Date: Tue Mar 07 2006 - 04:12:49 CET

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.
Received on Mon May 1 02:28:38 2006