Gmail/Outlook IMAP returns blank message.body(Sample not working)

Do like my post if it helped you :wink:

Thank you for your reply Vicky. Yes,I had both subject and body displayed separately, dint work. In fact the example on the portal itself is for body- doesnt work. :slight_smile:

well, ok! cracked it at last

The sample works only for plain-text mail messages. So, if it were HTML messages this stays blank.

The genius of an answer is here

Although its a typo there, the correct assignment is to be
mail.Headers("HTMLBody").ToString

Hope this helps someone who has been having sleepless nights.

17 Likes