How to import the .eml files to Message object

Jul 4, 2012 at 3:28 PM

how to import the .eml file file to an object to get the details of the Message is there is a option?

Jul 2, 2013 at 4:12 PM
Edited Jul 2, 2013 at 4:27 PM
I know this is about a year old question but here's the answer

Assuming att is your attachement that happens to be an EML file

var msg = Parser.ParseMessage(att.TextContentTransferEncoded);

Look at the Parser static class for other overloads of this method that could be usefull to you

Luís