Sending e-mails with attachment in C#

In previous post we saw how to send e-mails using C# in few simple steps. Here we will see how to add attachments to our messages. Know it: System.Net.Mail.Attachment : Used to attach any file to our MailMessage. GUI form: Implement it: using System; using System.ComponentModel; using System.Net.Mail; using System.Windows.Forms; namespace MailMe { public partial … Read more

Sending emails in C#

C# provides an easy solutions for sending mails in just few steps. Know it: Prior to main code file we first must look onto the classes .NET provides for sending mails and working with smtp protocol. All the mentioned classes are present under System.Net.Mail namespace. SmtpClient : Allows sending of emails using smtp protocol. MailMessage … Read more