Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read from .msg files [closed]

I need to read from Outlook .MSG file in .NET without using COM API for Outlook (cos it will not be installed on the machines that my app will run). Are there any free 3rd party libraries to do that? I want to extract From, To, CC and BCC fields. Sent/Receive date fields would be good if they are also stored in MSG files.

like image 613
huseyint Avatar asked Aug 19 '08 08:08

huseyint


People also ask

Can MSG files be no longer opened?

msg file not opening in outlook” issue is to open the file manually. In some cases, Outlook is not the default email client, so there is no relevant application to open the MSG file. Right-click on the MSG file on your system. Choose “Open with” and select Outlook(desktop) option.

How do I open a .MSG file without Outlook online?

1. Simply visit Zamzar.com in your favorite browser. 2. You then click on Choose Files to select the MSG file that you want to convert, select the file format you want to convert it to which is PDF here, and then finally click on Convert Now to initiate the conversion.


2 Answers

There is code avaliable on CodeProject for reading .msg files without COM. See here.

like image 88
Paul Batum Avatar answered Oct 11 '22 15:10

Paul Batum


Update: I have found a 3rd party COM library called Outlook Redemption which is working fine for me at the moment. If you use it via COM-Interop in .NET, don't forget to release every COM object after you are done with it, otherwise your application crashes randomly.

like image 27
huseyint Avatar answered Oct 11 '22 16:10

huseyint