System.Net.Mail.Tests.MailMessageTest.MailMessageTest C# (CSharp) Method

MailMessageTest() public method

public MailMessageTest ( ) : System.Text
return System.Text
        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]");
        }