[thelist] Re: PHP mail to many recipients

Timothy Joko-Veltman tim at indigopixel.com
Mon Dec 13 08:06:09 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.

Timothy


More information about the thelist mailing list