Hi everyone,
I want to ask about how to render HTML tag and send it to the email body
Is there any best approach doing this?
Thank you
How to Render HTML with Console Application
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 14, 2013, 7:01 PM EST
You can do as like this,
MailMessage message = new MailMessage();
message.From = new MailAddress("[email protected]", "from name");
message.Subject = "Email Subject";
message.Body = body; // dynamic html
message.BodyEncoding = Encoding.ASCII;
message.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient("your email server");
smtp.Send(message);