RE: [PHP] using mail() - what is max number of email addresses I can specify in To field?

From: Wouter Van Vliet (wouter_at_springt.nl)
Date: 10/24/03


To: "'Rolf Brusletto'" <rolf-list@triculture.com>, "'John Christopher'" <john_christopher1997@yahoo.com>
Date: Fri, 24 Oct 2003 19:17:25 +0200

Here's some of my considerations ;)

First of all, for the matter of anti-spam, please do not use the to for more
people than, well .. Usually just one actually. Rather use the 'Bcc:' line.
If there's no personalized information in the email (you might, for example,
want to start with "Good Afternoon John" for a mail to a fella named John),
I'd split up the list in chunks of 20 or 50 or smth. Or at least an amount
every mailer could handle. Also, you'll probably want to group those chunks
by domain. That way your mailersoftware will have to connect to as little
different addessas as possible. Just specify your own address as 'To:' of
you want to use only BCC. Or even better, specify something like
"Undisclosed Recepients <null@yourdomain.com>" so those mails will just
vanish out of existence.

Or you can, as suggested, make one mail for every recepient. Looks more
personal anyways. I'm not sure if it increases the speed here also if you
give your messages to mail sorted on domain name but I know it won't hurt
;).

Hope I helped a bit,
Wouter

-----Original Message-----
From: Rolf Brusletto [mailto:rolf-list@triculture.com]
Sent: Thursday 23 October 2003 06:54
To: John Christopher
Cc: php-general@lists.php.net
Subject: Re: [PHP] using mail() - what is max number of email addresses I
can specify in To field?

It really depends on the mta you use... if your going to use mail(); the I
would put the list of addresses in an array and the do

foreach($addressArray as $address) {
mail($address,'Here is your subject','Here is your content'); }

Rolf Brusletto
http://www.phpexamples.net

John Christopher wrote:

>I am writing a script that will query a database table for some
>statistical information, and then email it (daily, weekly, and monthly)
>to a list of subscribers. I don't know ahead of time how many persons
>will be subscribed to receive the info (it could be 20 persons or 2000
>or more). Email addresses can be added to or deleted from the
>subscriber list at any time.
>
>If I am not mistaken, MTAs have a limit on how many recipients can be
>specified on the To: line of an email message. What is the limit, or
>does it depend on the MTA you're using (sendmail, qmail, etc), or other
>factors? If there is such a limit, then what is the best way to send
>the message to each recipient?
>
>Thank you.
>
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search
>http://shopping.yahoo.com
>
>
>

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php


Relevant Pages

  • Re: Steve Carroll proves he cannot understand what he reads. Again.
    ... Yup, and they show that both you and John are "very, very" confused. ... "Steve has an unsupported eSata card in his machine for one thing". ... "John responded to a comment about "Macs" by referencing a specific ... "That John's reply to the comment about "Macs" does not specify ...
    (comp.sys.mac.advocacy)
  • Re: newsyslog.conf question
    ... > to specify a program to run after a log file has ... > log file when it runs the program. ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (freebsd-questions)
  • Re: Diagnosing unrecognized hardware
    ... Sorry for being unclear. ... specify the product id, because I suspect that I need to add that to ... Do you Yahoo!? ... Finance Tax Center - File online. ...
    (freebsd-hackers)
  • [HPADM] Re: Restricted IP for SSH connections
    ... It'll allow you to specify specific ... hosts/ranges/users to allow to access services on a host. ... Do you Yahoo!? ... To subscribe/unsubscribe to this list, ...
    (HP-UX-Admin)
  • Re: DRIVES
    ... You can specify any Drive\folder as the location for your ... captured video as John said. ... Windows XP Media Center Edition ...
    (microsoft.public.windowsxp.moviemaker)