Click here to Skip to main content
15,885,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone recommend or point me to a way to load the contents of a binary stream into an Outlook message (or some other structure)? I need a way to access a message's attachments.

The current solution is disgusting as it requires Outlook to be running on the server. It saves the binary message to disk, opens it in Outlook, saves the attachments to disk then opens them for use.

Ideally, I would like to parse the raw binary stream and grab the attachments. However, this is unpredictable because I use the tag "octet-stream" to demarcate the beginning of the attachments and this doesn't appear once the email has been modified or forwarded.

Thanks for any advice.
Posted

1 solution

Which binary format are you using to save the attachments to the disk?
Check out the mfcmapi from codeplex for sample code to read the messages without outlook.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900