Display .eml file in browser

I am trying to pull binary from my sql which creates a .eml file which I can open in outlook no problem. I am looking to have it vieable within a browser some how.

Any suggesstions or free SDKs out there that will help with it.

Just need the .eml mime displayed in the web browser. If I could parse it I am sure it would be easier but having trouble parsing it as well.


Thanks,
desiredforsomeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
I don't know (never looked for) free components to parse .eml.

But I am aware of this commercial product: http://www.aspose.com/.net/email-component.aspx 

But apparently, you can use CdoSys to parse them: http://support.microsoft.com/en-us/kb/310224
TalokEchelonCommented:
From what I've found, an EML file is structurally equivalent to a MHT file.  You could output the file extension and MIME type of the document as MHT and it should display in a web browser.

The MIME type for both EML and MHT would be "message/rfc822".
desiredforsomeAuthor Commented:
I found a library that is helping out but i am reaching an issue maybe you all could help.

I found a library called lumisoft and have good luck with alot of things however.

I am having trouble pulling the "To" or "From" I know im doing something wrong

This is in c#
 Mail_Message msg = Mail_Message.ParseFromFile(@"C:\Users\cgashlin.MORGANFINANCIA0\Desktop\{70FD9BE6-3B4E-4D07-BECA-C7F79A89C1E6}.eml");
            textBox2.Text = msg.Subject;
            //textBox3.Text = msg.BodyHtmlText;
            webBrowser1.DocumentText = msg.BodyHtmlText;
            textBox1.Text = msg.MessageID;

Open in new window


The above code works but i cannot do the following -

textBox1.Text=msg.To;

Open in new window


I get the following error and i cant figure it out -
Error      1      Cannot implicitly convert type 'LumiSoft.Net.Mail.Mail_t_AddressList' to 'string'
Éric MoreauSenior .Net ConsultantCommented:
it is probably a list of addresses.  have you tried:

textBox1.Text=msg.To.ToString();

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
desiredforsomeAuthor Commented:
Something simple lol.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.