I'm using Exchange Service in c# to receive an email.
I'm using the following code:
var service = new ExchangeService
{
Credentials = new WebCredentials("somename", "somepass"),
Url = new Uri("someurl")
};
FindItemsResults <Item> findResults = service.FindItems(WellKnownFolderName.Inbox,new ItemView(1));
var item = findResults.Items[0];
item.Load();
return item.Body.Text;
It returns body in html. Is there any way i could get text only instead of html, i don't need html tags. Or should i parse it?
Thanks for any input.