Managing the sending and receiving of messages are recurring needs in many applications. Because you can be faced with it one day, it's better to get to work by exploring the .Net framework that will allow you to easily implement this feature.
The e-mail can be used in various ways: notification, report or sending "personal" mail.
The Microsoft team has recognized this need and has developed two new namespaces that facilitate the sending of email.
Both namespaces are System.Net.Mail and System.Net.Mime which respectively, create a Mail object (MailMessage) and manage MIME headers of messages.
This class contains a significant number of properties allowing to customize the email as you would do with your email client. Start by defining the author of the email. This is done using the MailAddress class.
The second thing is to define the recipient (s).
As you can see, it is very easy to specify the recipients of the email and especially to define several recipients while specifying at which group of reception they belong .
It is possible to include attachments to your emails. you will find that their use is just as simple.