Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: MessageBody Html & Text empty, but BodyParts has contents

$
0
0
Using ImapX2 on GMail with a message body and one attachment, I am trying to read the message body.

MessageBody.Html and .Text are both false and Html & Text are both empty, although BodyParts[0].ContentStream has the email body content and BodyParts[1].Content stream has what appears to be the binary attachment.

Will BodyParts[0] always contain the text message or should I take a different approach?

I am using MessageFetchMode.Full.

Edit:
If I forward an identical message and attachment from another gmail account, MessageBody populates as expected.

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>