0

I am developing a page in asp.net for sending mail to the user. I need to convert html message body to string message including css styles added to it. How to convert html format to string format so that i will give as

MailMessage mail=new MailMessage(xxx@example.com,xxxTo@example.com);
mail.Body=strHTMLBody; //the HTML Converted string
mail.IsBodyHtml = true;

Thanks in Advance.

1 Answers1

0

Replace mail.IsBodyHtml = true; with mail.IsBodyHtml = false; if I understand you

nicael
  • 18,550
  • 13
  • 57
  • 90