Hi,
I have an automatic windows service to send out the emails as scheduled. But the email message i have been receiving is appearing in plain text instead of HTML format. Can someone throw me few tips or ideas where i am making a mistake.
thanks
Loading

Ravishankar SinghRank #669 · 3.6K reputationPosted May 6, 2011, 7:35 PM EDT
You can match your code from the below:
Look into Bold section.
MailMessage mail = new MailMessage(); mail.To = "[email protected]"; mail.From = "[email protected]"; mail.Subject = "this is a test email."; mail.BodyFormat = MailFormat.Html; mail.Body = "this is my test email body. this part is in bold"; SmtpMail.SmtpServer = "localhost"; //your real server goes here SmtpMail.Send( mail );"System.Web.Mail.MailFormat"
Hope this will helpful for u. :)
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted May 6, 2011, 8:48 PM EDT
";
Title of Post:
" + "" + v2 + "";
Description of Post:
" + v3;
";
//in above lines I'm building HTML body for mailing, here you can use any standerd html tags
Hope this helps.
ASPbee40 reputationPosted May 10, 2011, 7:28 AM EDT