473,487 Members | 2,461 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 1674

"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
8176
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
2212
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
1959
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
2562
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
2178
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
3965
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
3087
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
3759
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
4655
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
6967
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...
0
7142
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6847
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...
1
4875
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
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
272
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.