The other possible question you might want to ask is:
How will the message be formatted and sent... some services such as
hotmail will flag the message as spam based on the multiple mail
deliveries when used option #2. And there are also many other
considerations related to spam.
Instead what you could consider doing:
Option #3)
Write a subroutine that would group recipients based on host, and send
one mail to each host with bcc. Also I would not use the internal mail
function, instead I would try a full smtp class, especially when using
mime that has built in support for services such as hotmail, yahoo, etc.
Whenever we send email list to hotmail users I format the message
differently then when we send to yahoo, and so on .... I would avoid
allowing sendmail to handle the function of grouping ...
Hope it helps...
Marek
Philip Thompson wrote:
On 10/7/07, Stut <stuttle@xxxxxxxxx> wrote:
Martin Zvarík wrote:
Hello--
I want to send email to 100+ recipients. Two choices I thought of:
1) once call mail() and use BCC, but the negative of this method is that
every recipient in BCC has header "To" same (so I used to put my email
in here - not email of one of the recipients).
2) several calls to mail() function with each recipient's emal
Why are you sending mail to 100+ recipients? Is it something you do
often? Is it always the same recipients? When are you sending them?
If it's a mailing list use mailing list software as Daevid suggested -
it's what it's for!
I would recommend avoiding the use of BCC from PHP.
-Stut
Why avoid Bcc from PHP?
~Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php