+1 vote

We have run the Mail.dll for 3 years with out any issues. In the last couple of weeks we have had issues with the Text being blank when we are pulling from an Exchange Server.

The Text field is still blank unless the email is formatted as text. Before even when the email was in HTML it would have the message body in the text field without all of the Html coding that the html text would have.

by

1 Answer

0 votes

There is a good chance that those emails are formatted using HTML only (I'd have to see the raw eml to be sure).

You can use IMail.GetBodyAsText (returns body in plain text format, returns Text or extracts text from HTML or RTF) or IMail.GetTextFromHtml (extracts plain text from HTML) to convert HTML to plain text, if it is not available.

by (297k points)
...