[thelist] Re: PHP mail to many recipients

Chris Heilmann lists at onlinetools.org
Mon Dec 13 08:26:43 CST 2004


> Bird, Graham wrote:
>> Hi,
>>
>> Seamus - thanks for the tip, but I'm worried that there will be a
>> performance hit. How many mails have you sent using a loop?
>>
>
> I just put all the addresses  into a comma-separated list (with a loop
> or implode() ), then put this in the Bcc header, using an "archive" or
> administrative address for the main recipient (and Reply-To).  Using Bcc
> means no one will see anyone else's address ... and I can send the
> message with one call to mail() ...  I've found this to be much simpler,
> and it probably saves a few CPU cycles, to boot.

Wouldn't that alert many a spam filter? Also, this is very dependent on th
setting of your sendmail, as it _should_ limit the length of the bcc
string.


-- 
Chris Heilmann
http://icant.co.uk/ | http://www.onlinetools.org/



More information about the thelist mailing list