Add using System. Web. Mail;
# Region Build html Talbe
System. Text. StringBuilder tableStr = new StringBuilder ();
TableStr. Append ("<TABLE id = 'table1' style = 'z-INDEX: 102; LEFT: pixel PX; WIDTH: 700px; POSITION: absolute; TOP: 24px; HEIGHT: export PX 'cellspacing = '0' cellPadding = '1' width = '000000' border = '1'> ");
TableStr. append ("<TR bgcolor = '# 99ffff'> <TD borderColor =' # 6600ff 'style = 'height: 40px '> ModelName </TD> <TD borderColor =' # 6600ff 'style = 'height: 40px'> Customer </TD> ");
TableStr. append ("<TD borderColor = '# 6600ff' style = 'height: 40px '> weekly </TD> <TD borderColor =' # 6600ff 'style = 'height: 40px '> Quantity </TD> </TR> ");
TableStr. append ("<TR bgcolor = '# 99ffff'> <TD borderColor =' # 6600ff 'style = 'height: 40px'>" + this. txt_ModelName.Text.Trim (). toUpper () + "</TD> ");
TableStr. append ("<TD borderColor = '# 6600ff' style = 'height: 40px '>" + this. txt_Customer.Text.Trim () + "</TD> <TD borderColor = '# 6600ff 'style = 'height: 40px'>" + this. cbox_Week.SelectedValue.ToString () + "</TD> ");
TableStr. Append ("<TD borderColor = '# 6600ff' style = 'height: 40px '>" + this. Txt_Quantity.Text.Trim () + "</TD> ");
TableStr. Append ("</TR> </TABLE> ");
# Endregion
MailMessage mesg = new MailMessage ();
Mesg. From = "web_admini ";
Mesg. To = emailaddress;
Mesg. Subject = "business delivery design proposal added ";
Mesg. body = "Dear All:" + "<br>" + "<br>" + "The following lists the new conditions for sending business metric charts: "+" <br> "+TableStr. ToString ()+ "<Br>" + "<a href = http: // inlcnwebap01/NPTR/target = _ blank> http: // inlcnwebap01/NPTR/</a> "+" <br> "+
Mesg. BodyFormat = MailFormat. Html;
SmtpMail. SmtpServer = "10.133.130.62 ";
SmtpMail. Send (mesg );