Mail with Attachment

suggest change

MailMessage represents mail message which can be sent further using SmtpClient class. Several attachments (files) can be added to mail message.

using System.Net.Mail;

using(MailMessage myMail = new MailMessage())
     Attachment attachment = new Attachment(path);

     // further processing to send the mail message


Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents