Using Aspose.Email, I have written the code for a web page that parses a MSG email, displays the header and body information and then loops through each attachment in the MSG file and displays the attachment name. I then have this name hyperlinked to another page which is supposed to open the email and the attachement and write the binary attachment data out to the browser via the Response.OutputStream.
The problem is that in an email, you can have multiple attachements all named exactly the same, and therefore, I can't use the attachment.name property as a unique value to pass to the second page. I tried using attachment.ContentID, but that is a GUID that appears to change everytime that the MSG file is opened. How can I get a unique identifier for the attachment that I can use to open it?