Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Send bulk email

Tags:

c#

email

I am wondering what the best way to send bulk emails is using System.Net.Mail and C#.

Is it a good idea to send emails in batches?

Should I use the to field or BCC?

like image 813
Luke Lowrey Avatar asked Apr 11 '10 10:04

Luke Lowrey


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

Is C language easy?

Compared to other languages—like Java, PHP, or C#—C is a relatively simple language to learn for anyone just starting to learn computer programming because of its limited number of keywords.

What is C in C language?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.


2 Answers

I prefer using the To field and send e-mails one at a time in stead of using the BCC field. This way the receiver sees his e-mail address in the TO field (less spam-sensitive) and you can personalize the e-mails per user in the future.

For the sending, you should use batches to prevent timeouts and heavy server loads. You could use a queue for all the e-mails and send them using a configurable schedule using a service, scheduled task, or whatever.

like image 109
Rody Avatar answered Oct 20 '22 03:10

Rody


If you do send a single email to multiple recipient and if it's for sending emails to people who don't know each other you should definitely use the BCC field otherwise you're sure to make a lot of people quite angry when you're giving away their email addresses to strangers (and you might also be breaking some kind of data protection law depending on where you live).

like image 37
Hans Olsson Avatar answered Oct 20 '22 05:10

Hans Olsson