Vuk Stanojevic

Vuk Stanojevic

  • 1.9k
  • 82
  • 4k

C# email body displays as HTML

Apr 5 2020 12:21 PM
Hi everyone,
I create email app.
In listview i display date,from,Message(body).
I have a problem that message body displays as HTML code.
How i can convert it to normal text?
I try with HtmlDecode but it didn't solve my problem.
EmailMessage message = EmailMessage.Bind(Service,item.Id);
string date = message.DateTimeReceived.ToString();
string from = message.From.Name.ToString();
string body = message.Body.Text.ToString();
ListViewItem item1 = new ListViewItem();

Brought to you by:

Answers (2)