Check the email component of Mail.dll :
IMail email = Mail.Text("This is message body")
.Subject("Test")
.From(new MailBox("mail@in_the_certificate.com", "Alice"))
.To(new MailBox("bob@mail.com", "Bob"))
.AddAttachment(@"c:\invoice.pdf")
.SignWith(new X509Certificate2("TestCertificate.pfx", ""))
.Create();
using (Smtp smtp = new Smtp())
{
smtp.Connect("smtp.server.com");
smtp.Ehlo();
smtp.Login("user", "password");
smtp.SendMessage(email);
smtp.Close();
}
You can also use the Mail.dll template engine to create a message body.
Disclaimer: Please note that this is a commercial product (at a reasonable price) that I helped create.