Instances of the MailMessage class are used to construct e-mail messages that are transmitted to an SMTP server for delivery using the SmtpClient class.
To specify the sender, recipient, and contents of an e-mail message, use the associated properties of the MailMessage class.
Use the AlternateViews property to specify copies of an e-mail message in different formats. For example, if you send a message in HTML, you might also want to provide a plain text version in case some of the recipients use e-mail readers that cannot display HTML content. For an example that demonstrates creating a message with alternate views, see AlternateViews.
After assembling your e-mail message, you can send it by using the Send or SendAsync methods.