public MailMessageTest()
{
messageWithSubjectAndBody = new MailMessage("[email protected]", "[email protected]");
messageWithSubjectAndBody.Subject = "the subject";
messageWithSubjectAndBody.Body = "hello";
messageWithSubjectAndBody.AlternateViews.Add(AlternateView.CreateAlternateViewFromString("<html><body>hello</body></html>", null, "text/html"));
Attachment a = Attachment.CreateAttachmentFromString("blah blah", "text/plain");
messageWithSubjectAndBody.Attachments.Add(a);
emptyMessage = new MailMessage("[email protected]", "[email protected], [email protected]");
}