System.Text.StringBuildersb = new System.Text.StringBuilder(); System.Web.Mail.MailMessage mail = new System.Mail.Web.MailMessage(); mail.To = " recipient@address "; mail.From = "sender"; mail.Subject = "Test"; mail.BodyFormat = System.Web.Mail.MailFormat.Html; sb.Append("<html><head><title>Test</title><body>");
You just need to set the body format to html, then you can add the html element to the bosy message from the mail message
source share