Connecting Tech Pros Worldwide Forums | Help | Site Map

Send mail to multiple address

Mattia
Guest
 
Posts: n/a
#1: Dec 13 '05
I have a very big problem.
I must send a single mail to multiple receivers. The number of
receivers are very big: approximately 6000 users, but this number
increase each year.
I find a lot of suggestion: insert all e-mail address (or part of them)
in the field BCC.
But I use a hosting server, for this reason I don't know if this
solutions is possible.
I can use my computer, but I don't know is SMTP of my ISP can support
this kind of feature.
Anyone did have the same problem? Can I resolve it?
Sorry if my English is not very good.
Mattia


Janwillem Borleffs
Guest
 
Posts: n/a
#2: Dec 13 '05

re: Send mail to multiple address


Mattia wrote:[color=blue]
> I find a lot of suggestion: insert all e-mail address (or part of
> them) in the field BCC.
> But I use a hosting server, for this reason I don't know if this
> solutions is possible.
>[/color]

BCC shouldn't be the problem, as it's part of the protocol, but you might
want to ask your hosting provider if they support bulk mailings.
[color=blue]
> I can use my computer, but I don't know is SMTP of my ISP can support
> this kind of feature.
>[/color]

So, ask your ISP if they do. If nothing works out, an option would be to
divide your mailings into smaller batches and send those batches with a
delay.


JW


Gordon Burditt
Guest
 
Posts: n/a
#3: Dec 13 '05

re: Send mail to multiple address


>I have a very big problem.[color=blue]
>I must send a single mail to multiple receivers. The number of
>receivers are very big: approximately 6000 users, but this number
>increase each year.
>I find a lot of suggestion: insert all e-mail address (or part of them)
>in the field BCC.[/color]

SMTP is supposed to support a minimum of 50 addresses for a given
message. It is not guaranteed to go higher than that. Although
SPAM filters and hosting servers may not honor that, it's a good
start. Some UNIX servers may not honor a command-line length longer
than 10K or 20K, which will be violated with 6000 users.
[color=blue]
>But I use a hosting server, for this reason I don't know if this
>solutions is possible.
>I can use my computer, but I don't know is SMTP of my ISP can support
>this kind of feature.
>Anyone did have the same problem? Can I resolve it?[/color]

Try testing it. This is really the only way to be sure.

Note that your host may not be the only one enforcing limits. If,
for example, you send to 1,000 addressees, your host might accept
that, but if there's 60 in that batch going to sol.com, sol.com's
server might refuse it for too many addressees.

Gordon L. Burditt
BLob
Guest
 
Posts: n/a
#4: Dec 14 '05

re: Send mail to multiple address


BCC is often not a good thing, as servers might refuse the mails or tag them
as SPAM.
I use a php script with a loop sending the mails one by one.
I use phpMimeMail (from http://www.phpguru.net) to create and send the mail
(many features and versions for php4 or php5).
The email adresses are stored in a mysql table.
Each time a mail is correctly sent, I write it in the database.
And I stop as soon as there is an error.
Then I can decide to loop over all the users who I didn't send the mail to
or to loop over them 100 by 100 or 500 by 500.
Each time I run the script it sends the mail only to users who did not
receive it, until there are no more users.

On a dedicated server, I can send 5000 mail in one loop using
set_time_limit(0);
On a shared server, I send them rather 100 by 100.

BLob


Tim Roberts
Guest
 
Posts: n/a
#5: Dec 16 '05

re: Send mail to multiple address


gordonb.04ddv@burditt.org (Gordon Burditt) wrote:[color=blue]
>[color=green]
>>I have a very big problem.
>>I must send a single mail to multiple receivers. The number of
>>receivers are very big: approximately 6000 users, but this number
>>increase each year.
>>I find a lot of suggestion: insert all e-mail address (or part of them)
>>in the field BCC.[/color]
>
>SMTP is supposed to support a minimum of 50 addresses for a given
>message. It is not guaranteed to go higher than that.[/color]

Where did you read that? Wherever it was, I wouldn't trust anything else
that it says. RFC2821 clearly says:

The second step in the procedure is the RCPT command.
RCPT TO:<forward-path> [ SP <rcpt-parameters> ] <CRLF>
...
This step of the procedure can be repeated any number of times.
[color=blue]
>Some UNIX servers may not honor a command-line length longer
>than 10K or 20K, which will be violated with 6000 users.[/color]

This has absolutely nothing to do with command lines.
[color=blue]
>Note that your host may not be the only one enforcing limits. If,
>for example, you send to 1,000 addressees, your host might accept
>that, but if there's 60 in that batch going to sol.com, sol.com's
>server might refuse it for too many addressees.[/color]

If they do so, they are violating RFC2821.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Tim Roberts
Guest
 
Posts: n/a
#6: Dec 16 '05

re: Send mail to multiple address


"BLob" <blob@nospam.invalid> wrote:[color=blue]
>
>BCC is often not a good thing, as servers might refuse the mails or tag them
>as SPAM.[/color]

That's nonsense, too. Most mailing lists are sent out with a single "To:
Mailing List Recipients" in the body, with all of the recipient names
blind.

There is clearly a lot of mistaken "general knowledge" about SMTP.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
David Quinton
Guest
 
Posts: n/a
#7: Dec 16 '05

re: Send mail to multiple address


On Wed, 14 Dec 2005 12:10:49 +0100, "BLob" <blob@nospam.invalid>
wrote:
[color=blue]
>BCC is often not a good thing, as servers might refuse the mails or tag them
>as SPAM.
>I use a php script with a loop sending the mails one by one.
>I use phpMimeMail (from http://www.phpguru.net)[/color]

Full URL please.
--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
BLob
Guest
 
Posts: n/a
#8: Dec 16 '05

re: Send mail to multiple address


Sorry, my mistake about the URL, it was not phpguru.net but phpguru.org.
Here is the full URL : http://www.phpguru.org/static/mime.mail.html

Sincerely,

BLob


BLob
Guest
 
Posts: n/a
#9: Dec 16 '05

re: Send mail to multiple address



"Tim Roberts" <timr@probo.com> a écrit dans le message de news:
aat4q15l8nl4isnnvtg8as947kkar9fj53@4ax.com...[color=blue]
> "BLob" <blob@nospam.invalid> wrote:[color=green]
> >
> >BCC is often not a good thing, as servers might refuse the mails or tag[/color][/color]
them[color=blue][color=green]
> >as SPAM.[/color]
>
> That's nonsense, too. Most mailing lists are sent out with a single "To:
> Mailing List Recipients" in the body, with all of the recipient names
> blind.
>
> There is clearly a lot of mistaken "general knowledge" about SMTP.[/color]

I really thought that for many spam filters, a mail sent to you when your
email address doesn't appear either in the To: field or in the Cc: field has
more chance to be tagged as a spam than when your email address appears in
one of these fields. That's what my mail servers administrator told me
severall times. Please tell me if I am wrong (and if I should change the
administrator of my servers). I am honestly interested by this matter.

Thanks,

BLob


BLob
Guest
 
Posts: n/a
#10: Dec 16 '05

re: Send mail to multiple address


"Tim Roberts" <timr@probo.com> a écrit dans le message de news:
aat4q15l8nl4isnnvtg8as947kkar9fj53@4ax.com...[color=blue]
> "BLob" <blob@nospam.invalid> wrote:[color=green]
> >
> >BCC is often not a good thing, as servers might refuse the mails or tag[/color][/color]
them[color=blue][color=green]
> >as SPAM.[/color]
>
> That's nonsense, too. Most mailing lists are sent out with a single "To:
> Mailing List Recipients" in the body, with all of the recipient names
> blind.[/color]

That is why most mailing lists servers are tagged as spam when I receive
them.

Then again, most GOOD mailing lists servers send lists and newsletters with
To: youremailadress@example.com and not with all recipient names in Bcc:
field (for example I think Sympa - www.sympa.org - is a good mailing lists
server). Why would they do so if there was no reason for it ?

BLob


BLob
Guest
 
Posts: n/a
#11: Dec 16 '05

re: Send mail to multiple address


> Then again, most GOOD mailing lists servers send lists and newsletters
with[color=blue]
> To: youremailadress@example.com and not with all recipient names in Bcc:
> field (for example I think Sympa - www.sympa.org - is a good mailing lists
> server). Why would they do so if there was no reason for it ?[/color]

Well, I checked and I am wrong: my address doesn't appear in the To: field
in newsletters I received from Sympa.

Sorry,

BLob


Andy Hassall
Guest
 
Posts: n/a
#12: Dec 16 '05

re: Send mail to multiple address


On Fri, 16 Dec 2005 08:05:21 GMT, Tim Roberts <timr@probo.com> wrote:
[color=blue][color=green]
>>SMTP is supposed to support a minimum of 50 addresses for a given
>>message. It is not guaranteed to go higher than that.[/color]
>
>Where did you read that? Wherever it was, I wouldn't trust anything else
>that it says. RFC2821 clearly says:
>
> The second step in the procedure is the RCPT command.
> RCPT TO:<forward-path> [ SP <rcpt-parameters> ] <CRLF>
> ...
> This step of the procedure can be repeated any number of times.[/color]

Perhaps the previous poster is misquoting RFC2821 sec. 4.5.3.1 "Size limits
and minimums":

" recipients buffer
The minimum total number of recipients that must be buffered is
100 recipients. Rejection of messages (for excessive recipients)
with fewer than 100 RCPT commands is a violation of this
specification. The general principle that relaying SMTP servers
MUST NOT, and delivery SMTP servers SHOULD NOT, perform validation
tests on message headers suggests that rejecting a message based
on the total number of recipients shown in header fields is to be
discouraged. A server which imposes a limit on the number of
recipients MUST behave in an orderly fashion, such as to reject
additional addresses over its limit rather than silently
discarding addresses previously accepted. A client that needs to
deliver a message containing over 100 RCPT commands SHOULD be
prepared to transmit in 100-recipient "chunks" if the server
declines to accept more than 100 recipients in a single message."
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
David Quinton
Guest
 
Posts: n/a
#13: Dec 17 '05

re: Send mail to multiple address


On Fri, 16 Dec 2005 15:47:26 +0100, "BLob" <blob@nospam.invalid>
wrote:
[color=blue]
>Sorry, my mistake about the URL, it was not phpguru.net but phpguru.org.
>Here is the full URL : http://www.phpguru.org/static/mime.mail.html[/color]


Thanks.

--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
Adam
Guest
 
Posts: n/a
#14: Mar 7 '06

re: Send mail to multiple address


On Wed, 14 Dec 2005 12:10:49 +0100, BLob wrote:
[color=blue]
>Each time a mail is correctly sent, I write it in the database.
>And I stop as soon as there is an error.
>Then I can decide to loop over all the users who I didn't send the mail to
>or to loop over them 100 by 100 or 500 by 500.
>Each time I run the script it sends the mail only to users who did not
>receive it, until there are no more users.[/color]

Blob - I also loop through (and in batches) ... but your idea of
flagging an address as "sent/OK" is a good one - many thanks.

Invaluable for those awful early testing stages of a mail-out when you
(embarassingly) send to some users more than once ;-)

Adam.
ECRIA Public Mail Buffer
Guest
 
Posts: n/a
#15: Mar 7 '06

re: Send mail to multiple address


Do you mind if I ask where you are hosting that will let you send out that
many emails? I have been looking for a solution for some time....

Thanks,

Peter

"Adam" <anon@nowhere.com> wrote in message
news:8cup02dae0laj5rlpjrf3j4s9qb7l2vmdq@4ax.com...[color=blue]
> On Wed, 14 Dec 2005 12:10:49 +0100, BLob wrote:
>[color=green]
>>Each time a mail is correctly sent, I write it in the database.
>>And I stop as soon as there is an error.
>>Then I can decide to loop over all the users who I didn't send the mail to
>>or to loop over them 100 by 100 or 500 by 500.
>>Each time I run the script it sends the mail only to users who did not
>>receive it, until there are no more users.[/color]
>
> Blob - I also loop through (and in batches) ... but your idea of
> flagging an address as "sent/OK" is a good one - many thanks.
>
> Invaluable for those awful early testing stages of a mail-out when you
> (embarassingly) send to some users more than once ;-)
>
> Adam.[/color]


Closed Thread