473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 4149
Luuk
1,047 Expert 1GB
In C#:

Expand|Select|Wrap|Line Numbers
  1.             Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
  2.  
  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();
  9.  
Jan 25 '20 #2

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

Similar topics

31
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...
54
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,...
0
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...
1
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...
2
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.