What does MailMessage.IsBodyHtml do?

Posted by Eddie Deyo on Stack Overflow See other posts from Stack Overflow or by Eddie Deyo
Published on 2010-03-31T19:18:36Z Indexed on 2010/03/31 19:23 UTC
Read the original article Hit count: 587

Filed under:
|
|

I'm testing sending out some emails via C#, but I can't tell what effect setting IsBodyHtml to true has. Regardless of the value, whatever I send in my Body shows up with a content type of "text/plain", and my HTML shows up tags and all in my email client (gmail). What is that flag actually supposed to do?

NOTE: I can send an HTML email just fine by creating an AlternateView with a content type of "text/html", I just want to understand how setting the body is supposed to work.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about email