| Author: mahalakshmi 05 Jul 2008 | Member Level: Gold | Rating: Points: 6 |
see the following code ,inside the body v can add text or table design,
msg = "<table><tr><td align='left' style='width:30%' class='texts'><b> Name</b> </td><td align='left' style='width:50%' class='texts'>"; msg += na; msg += "</td></tr>"; msg += "<tr><td align='left' style='width:30%' class='texts'><b> Password</b> </td><td align='left' style='width:50%' class='texts' >"; msg += pwdd; msg += "</td></tr>"; msg += "</table>";
MailMessage mailmsg = new MailMessage(); mailmsg.From = dgdfg; mailmsg.To = "dfgfgfg"; mailmsg.Subject = dfgsdfg; mailmsg.BodyFormat = MailFormat.Html; mailmsg.Body = msg; SmtpMail.Send(mailmsg);
try this.
|