Download attachment from Nested emails [embedded emails] in EWS VB.NET - message/rfc822 problem RRS feed

  • Question

  • Hi Everyone

    We are trying to download attachments of embedded email withing other email. Unfortunately embedded email is of type message/RFC822 and does not have any information available even if ItemAttachment is loaded into memory using ItemAttachment.Load(). 

    When we then try to load EmailMessage using ItemAttachment.Item.Load() we get an exception saying "This operations isn't supported on attachments".

    Could anyway please help? Spent 2 days researching how to get it done and after many tries, still without success.

    Your help is greatly appreciated.


    .NET Framework 3.5

    Exchange Server 2007


    • Edited by Kristof.C Tuesday, April 23, 2013 2:45 PM
    Tuesday, April 23, 2013 2:41 PM

All replies

  • I never saw a reply to this question.   I have an similar issue.  I am trying to get all the attachments from a email message that has email messages as attachments.  I need to somehow recurse through the attachments to find all the fileAttachments.    

    For example I have an email that has 2 attachments.  First attachment is a file. Second is another email.  This second email has 2 attachments.  First attachment is a file. Second is another email. This third email only has one attachment which is a file.  So i need to wind up with 3 file Attachments but cant figure out how to loop through this. 


    Thursday, June 15, 2017 8:16 PM