MailItem Attachment includes other objects

M

murali@Blr

Hello,

In VSTO, Outlook Mailitem Attachment object includes all other objects
included in the mail item. For eg: In new mail item if we attach any
files and add image in the body of the mail. than in Code all
attachment files and images in the body are comes as attachment.

How to differentiate the Attachment files and other objects added
later?

thanks
muralidharan tr
 
K

Ken Slovak - [MVP - Outlook]

I'm not sure what you're getting at here. If you embed an image in an email
of course it's an attachment to that email. That it represents an embedded
image doesn't make it any less of an attachment.

You have to look at each attachment in the Attachments collection to see
what they are, using the attachment properties such as Type, DisplayName,
FileName, etc. For more detail you can use the MAPI properties on an
attachment such as PR_ATTACH_CONTENT_ID, PR_ATTACH_FLAGS, PR_ATTACH_METHOD,
PR_ATTACH_MIME_TAG. Some of those are always there and some are there for
only certain types of attachments such as embedded ones.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top