Parse .msg file using C#

16,477

Solution 1

  1. In the Outlook Object Model, use Application.Session.OpenSharedItem (will return MalItem).
  2. If using Redemption is an option, use its RDOSession.GetMessageFromMsgFile method.

Solution 2

This article on CodeProject (http://www.codeproject.com/Tips/712072/Reading-an-Outlook-MSG-File-in-Csharp) its everething that you need.

Very complete and funcional.

Share:
16,477
SmartestVEGA
Author by

SmartestVEGA

Updated on June 04, 2022

Comments

  • SmartestVEGA
    SmartestVEGA almost 2 years

    I need to parse Outlook .msg files. How do I do it? Are there any classes?

    I found http://www.aspose.com/purchase/pricing-info-step-1-of-3.aspx

    Aspose it is a third party tool, which I need to purchase.

    Is there any other way without purchasing?

  • SmartestVEGA
    SmartestVEGA about 14 years
    but i m not able to reference the class OutlookStorage.Message????
  • Darin Dimitrov
    Darin Dimitrov about 14 years
    You need to download the accompanying source code which contains everything that is needed.
  • drzaus
    drzaus over 5 years
    Ironically this SO page is now the first hit on google, at least when I search ".net parse .msg file"