+2 votes

The emails I download using Maill.dll returns empty string for the
Text and HTML property. Hence the GetBodyAsText and GetTextFromHtml method return empty string.
Meanwhile, on my Gmail app, I can read the email with text and HTML in it.

How can I fix this?

by
How does your code look like?

1 Answer

0 votes

If IMail.Text is empty and IMail.Html is empty it means, that text/plain and text/html parts are empty.

You might be downloading headers only, instead of downloading entire email.

Double check if you are using Imap.GetMessageByUID method.

If you believe the message is parsed incorrectly, please follow the steps here:
https://www.limilabs.com/blog/i-have-problems-parsing-the-message
(basically we need to get the raw eml to check)

by (301k points)
Thank you very much, I made the mistake of downloading headers only instead of downloading the entire email.
...