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



Reply via email to