Re: [PHP] Sending lots of emails - 2 choices - choose the best one



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

.



Relevant Pages

  • Re: Export address format
    ... Use the Recipients collection, not the Bcc or Cc fields, which return only display names. ... Sue Mosher, Outlook MVP ... > the SuchAndSuch@xxxxxxxxxxx format. ...
    (microsoft.public.outlook.program_vba)
  • Re: Cant receive emails from bccs sender
    ... Unable to contact the following recipients: ... The format of the e-mail address is incorrect. ... it doesn't appear that the problem is with the BCC field data - ...
    (microsoft.public.exchange.admin)
  • BCC Sent to..?
    ... I understand for security reasons not displaying BCC recipients to those receiving the message - but surely those who sent it may need to know/need reminding. ... How can I view my those I BCCd via Outlook Express or Hotmail? ...
    (microsoft.public.outlook)
  • Re: Hotmail
    ... I don't believe you can do that, but you can BCC all recipients and put your ... newsgroup - not the best place for Hotmail questions. ... > I have hotmail internet explorer. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: & BCC: In Preview Pane
    ... No e-mail client will show you the Bcc header. ... YOU don't get ANYTHING regarding the recipients in the ...
    (microsoft.public.outlook.general)