This project is read-only.

Images inserted in body

Jul 2, 2013 at 9:08 PM
I have already seen other old posts about it, but since nobody answear them I decided to create a new one. I know we can get the attachments of an email by msg.Attachments[x].BinaryContent where msg is the Message object..
But is there a way to get the image(s) inserted directly to body?? ( In the body options of msg only appear something like "[Image1]", and in the htmlbody appear something like"
<img src="id=xxxxx"></src>" )
Jul 3, 2013 at 6:11 AM
There are three collections with attachments:
msg.Attachments: contains attached items, marked in the mail as "attachment"
msg.EmbeddedObjects: contains items which are marked as "inline"
msg.UnknownDispositionMimeParts: all other items

Your image should be in msg.EmbeddedObjects
Jul 3, 2013 at 2:49 PM
well, it's not in msg.EmbeddedObjects, but it's in msg.UnknownDispositionMimeParts.