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);
     myMail.Attachments.Add(attachment);

     // further processing to send the mail message

}

Feedback about page:

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



Table Of Contents