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

2003-10-24 Thread Wouter van Vliet
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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 
Sent: Thursday 23 October 2003 06:54
To: John Christopher
Cc: [EMAIL PROTECTED]
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

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



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

2003-10-22 Thread Marco Tabini
I'm not sure if you've considered this possibility--but can't you send 
the messages to one recipient at a time? This way, the problem wouldn't 
present itself, and the end result would be quite the same (with the 
added bonus of not having to disclose your entire mailing list to each 
recipient).

To speed things up, you may want to look at the PHPMailer project 
(http://phpmailer.sourceforge.net/), which provides a class that 
facilitates sending the same message to multiple recipients, as well as 
other aspects of e-mailing, like HTML bodies and attachments.

Finally--if you're sending lots of e-mail I recommend you monitor your 
MTA carefully--Sendmail has a habit of choking on large mailings, 
whereas learner MTAs like Exim or Qmail seem to do better.

Cheers,

Marco

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


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

2003-10-22 Thread Rolf Brusletto
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