472,358 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 software developers and data experts.

Free MSG to EML Converter Software

Which is the best and free way to convert MSG to EML
Dec 28 '19 #1
1 3445
1,047 Expert 1GB
In C#:

Expand|Select|Wrap|Line Numbers
  1.             Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
  3.             var item = app.Session.OpenSharedItem(@"D:\TEMP\test.msg") as Microsoft.Office.Interop.Outlook.MailItem;
  4.             string body = item.HTMLBody;
  5.             int att = item.Attachments.Count;
  6.             //item.SaveAs(@"d:\temp\test.html", OlSaveAsType.olHTML);
  7.             item.SaveAs(@"d:\temp\test.eml", OlSaveAsType.olTXT);
  8.             app.Quit();
Jan 25 '20 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: poisondart | last post by:
Hi, I'm not sure if this is the right group to post this. If not, then I would appreciate if somebody could point me to the correct group. This is my first time releasing software to the...
by: Matt | last post by:
How do we define systems programs? when we say systems programming, does it necessary mean that the programs we write need to interact with hardware directly? For example, OS, compiler, kernel,...
by: VM | last post by:
Once again, I know this question doesn't belong in this NG but since I don't know any other NG that deals with these topics, I decided to post it here. I'm a free-lance software developer and I...
by: daokfella | last post by:
Hi all, I want users of my website community to be able to upload video files. I'd like to automatically convert these on the server to flash video. I'd also like to get a screen shot from the...
by: czi02 | last post by:
Is there any free downloable html which is not a trial version. Bacause I had no html software to be able to study and practice html by my own because I am a beginner. Could you help me. Or is...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.