![]() |
Differentiate between real attachment & embedded image inside mail
Greeting all,
How can i differentiate between embedded image inside body of email & image that attached inside mail itself. When i looking into MailItem.Attachments object, it contains these 2 images with no indication whether this image is belong as embedded image or attachment. Please help. Thanks. |
Differentiate between real attachment & embedded image inside mail
See http://www.outlookcode.com/codedetail.aspx?id=52
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Kctan80" wrote in message ... Greeting all, How can i differentiate between embedded image inside body of email & image that attached inside mail itself. When i looking into MailItem.Attachments object, it contains these 2 images with no indication whether this image is belong as embedded image or attachment. Please help. Thanks. |
Differentiate between real attachment & embedded image inside
Ok - what if you just want to access the property of the attachment that lets
you know what the CID is for an embedded image attachment? Do this just using VSTO objects and MAPI properties found within the MailItem.Attachments[x] item, no third party library... "Ken Slovak - [MVP - Outlook]" wrote:. See http://www.outlookcode.com/codedetail.aspx?id=52 -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Kctan80" wrote in message ... Greeting all, How can i differentiate between embedded image inside body of email & image that attached inside mail itself. When i looking into MailItem.Attachments object, it contains these 2 images with no indication whether this image is belong as embedded image or attachment. Please help. Thanks. |
Differentiate between real attachment & embedded image inside
VSTO has nothing to do with it.
Unless you are using Outlook 2007 where you can use the new PropertyAccessor object of the Attachment then you can't do what you want using only the Outlook object model. If you are using Outlook 2007 you could use something like this to get PR_ATTACH_CONTENT_ID, assuming that "oAtt" is an attachment object: oAtt.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E") Note that what looks like an URL is actually the property tag for PR_ATTACH_CONTENT_ID using DASL syntax and is passed as a string. You couldn't use CDO 1.21 for that, it's not supported for any managed code. You couldn't use Extended MAPI, that's also not supported for managed code and is only programmed using C++ or Delphi. So those are your choices, use Outlook 2007 or Redemption or forget it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Robert Achmann" wrote in message ... Ok - what if you just want to access the property of the attachment that lets you know what the CID is for an embedded image attachment? Do this just using VSTO objects and MAPI properties found within the MailItem.Attachments[x] item, no third party library... |
All times are GMT +1. The time now is 10:42 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com