![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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. |
Ads |
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
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. |
#4
|
|||
|
|||
![]()
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... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to reconstitute message with embedded image | MA[_2_] | Outlook and VBA | 5 | October 31st 07 08:29 PM |
Attachment as a field, not inside e-mail message | vt003 | Outlook - General Queries | 1 | October 3rd 07 05:52 PM |
Embedded image moved to file problem | Yobbo | Outlook - General Queries | 1 | June 6th 07 07:58 PM |
How to send a mail with a embedded attachment? | Jimmy | Outlook - General Queries | 2 | October 18th 06 06:16 AM |
Embedded image in email - PCX file extension | Glyn Elrod | Outlook Express | 27 | February 13th 06 04:51 PM |