private void Page_Load(object sender, System.EventArgs e) {
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>");
sb.Append("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
sb.Append("<tr><td>");
sb.Append("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
sb.Append("<tr><td style=\"FONT-SIZE: 14pt;COLOR: blue; FONT-FAMILY: Arial, Monospace; \">Header</td></tr></table>");
sb.Append("</td></tr>");
sb.Append("<tr><td>");
sb.Append("Body");
sb.Append("</td></tr>");
sb.Append("<tr><td>");
sb.Append("Footer");
sb.Append("</td></tr></table>");
sb.Append("</body></html>");
mail.Body = sb.ToString();
System.Web.Mail.SmtpMail.SmtpServer = "localhost"; //Your Smtp Server
System.Web.Mail.SmtpMail.Send(mail);
}