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
- Next message: Tom Rogers: "Re: [PHP] DOM XML difference between PHP versions 4.2.1 and 4.3.3"
- Previous message: Marek Kilimajer: "Re: [PHP] How do i delete all escaped backslashes when i make a file???"
- In reply to: Rolf Brusletto: "Re: [PHP] using mail() - what is max number of email addresses I can specify in To field?"
- Next in thread: Manuel Lemos: "Re: using mail() - what is max number of email addresses I can specify in To field?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Tom Rogers: "Re: [PHP] DOM XML difference between PHP versions 4.2.1 and 4.3.3"
- Previous message: Marek Kilimajer: "Re: [PHP] How do i delete all escaped backslashes when i make a file???"
- In reply to: Rolf Brusletto: "Re: [PHP] using mail() - what is max number of email addresses I can specify in To field?"
- Next in thread: Manuel Lemos: "Re: using mail() - what is max number of email addresses I can specify in To field?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|