Cannot differentiate between a real and an embedded attachment (PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E")) RRS feed

  • Question

  • Hi All,

    I am using Attachment.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E") to get the content id of an attachment. It should return empty string for valid attachments and a valid content id for embedded attachment / image.

    But in my case, it is returning a content id of a valid attachment (a pptx file or xlsx file, behavior is random), so my code treats it as an embedded attachment. It is happening only when I forward a received email containing some valid attachments. While forwarding, in ItemSend event handler, when I access the content id property, it is not empty (but it is expected to be empty for valid attachments).

    Can anyone help me on this please ? I am using Outlook 2007.

    Thanks & regards,


    Wednesday, December 29, 2010 8:42 PM