473,473 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MailMessage Class

I am using MailMessage class of .NET framework .....

I have a scenerio in which i need to send mail to large number if users >
10,000 users.....

I know i can do ......

MailMessage msg = new MailMessage();
msg.To = x1@domain.com;x2@domain.com; // Semi colon seperated alias assigned.
SmtpServer.Send(msg);

But giving such a huge list in "To" field.. will it work or will it get the
whole thing crashing down.

OR

Will it be a better option to split the To list in to small lists of 100 and
then send more than 1 mail for each list of 100 users.

Any thoughts are welcome or Data in numbers on how many should be in To list
is safe number to send

--
MCAD
Vineet Batta

Jul 21 '05 #1
4 1673

"vineetbatta" <vi*********@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
I am using MailMessage class of .NET framework .....

I have a scenerio in which i need to send mail to large number if users >
10,000 users.....

I know i can do ......

MailMessage msg = new MailMessage();
msg.To = x1@domain.com;x2@domain.com; // Semi colon seperated alias
assigned.
SmtpServer.Send(msg);

But giving such a huge list in "To" field.. will it work or will it get
the
whole thing crashing down.

OR

Will it be a better option to split the To list in to small lists of 100
and
then send more than 1 mail for each list of 100 users.

Any thoughts are welcome or Data in numbers on how many should be in To
list
is safe number to send

--
MCAD
Vineet Batta


You might want to check with the isp you are sending the mail through if
that is the case. Lots of times they restrict the number of recipients you
may have. I believe that the server you are sending through will dictate
the maximum you are able to send.

jjardine
Jul 21 '05 #2
Yes very valid point.
Lets assume that no such rule is set on the SMTP Server.

How much can SMTP support? Any threshold number beyond which it might behave
unpredictablely.

Regards
Vineet Batta
MCAD

"jjardine" wrote:

"vineetbatta" <vi*********@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
I am using MailMessage class of .NET framework .....

I have a scenerio in which i need to send mail to large number if users >
10,000 users.....

I know i can do ......

MailMessage msg = new MailMessage();
msg.To = x1@domain.com;x2@domain.com; // Semi colon seperated alias
assigned.
SmtpServer.Send(msg);

But giving such a huge list in "To" field.. will it work or will it get
the
whole thing crashing down.

OR

Will it be a better option to split the To list in to small lists of 100
and
then send more than 1 mail for each list of 100 users.

Any thoughts are welcome or Data in numbers on how many should be in To
list
is safe number to send

--
MCAD
Vineet Batta


You might want to check with the isp you are sending the mail through if
that is the case. Lots of times they restrict the number of recipients you
may have. I believe that the server you are sending through will dictate
the maximum you are able to send.

jjardine

Jul 21 '05 #3
vineetbatta <vi*********@discussions.microsoft.com> wrote:
Yes very valid point.
Lets assume that no such rule is set on the SMTP Server.

How much can SMTP support? Any threshold number beyond which it might behave
unpredictablely.


Sending an email with that many people on the "To" line is a *really,
really* bad idea. It's just asking for someone to hit "reply to all"
and you'll end up with a nasty situation. At the very least use BCC,
but to avoid potential size problems, why not split it into 100 emails
to 100 people each?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #4
Yes Jon, BCC is what is had on my mind. Though i wrote "To". Any way thanx
for the response.

Still i am looking for some information on the numbers which i could
consider safe in BCC list for each iteration of mail sent to recipients.

-Vineet Batta

"Jon Skeet [C# MVP]" wrote:
vineetbatta <vi*********@discussions.microsoft.com> wrote:
Yes very valid point.
Lets assume that no such rule is set on the SMTP Server.

How much can SMTP support? Any threshold number beyond which it might behave
unpredictablely.


Sending an email with that many people on the "To" line is a *really,
really* bad idea. It's just asking for someone to hit "reply to all"
and you'll end up with a nasty situation. At the very least use BCC,
but to avoid potential size problems, why not split it into 100 emails
to 100 people each?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Trond A. S. Andersen | last post by:
Hi all, I'm working on a project in which i need to send mail attachments in the form of Excel documents from a .NET C# application. I've written a class which creates the Excel document using...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
1
by: MickeBoy | last post by:
Hi all! I'm trying to send a HTML mail using the MailMessage class. Sending the message works fine, but there is something funny with the received message. I use the code below to generate and...
3
by: Anthony Fine | last post by:
Hello All, I have a VB.Net app that needs to send mail. I have created a class for building my e-mail, but keep getting the error (Could not access 'CDO.Message' object.) when trying to send...
6
by: Jul | last post by:
Hi, I use MailMessage class for create email. I specify such settings: mmEmail = New MailMessage mmEmail.To = ".." mmEmail.Body = "..." mmEmail.Subject = "..." mmEmail.BodyFormat =...
0
by: Scott Townsend | last post by:
I'm trying to send an email and get a delivery receipt back. I'm setting the MailMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess and it works great for the First email...
2
by: asnowfall | last post by:
I am trying to build System.Mail.MailMessage object out of mime encoded SMTP data. I have following questions Byte byteMailData; //mime encoded STMP data for "email with attachment" 1)...
3
by: Sully | last post by:
Hi, I am having a small problem generating an e-mail via an online form. I am creating an e-mail using the MailMessage command and I know that you have to do something special to render the values...
1
by: Michel Couche | last post by:
Hello, I am starting the development of a newsletter The use of the class MailMessage of System.Net.Mail is quite straightforward for usual contact forms but my question here is "How can I...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.