1. Products
  2.   Editor
  3.   .NET
  4.   MSGReader
 
  

Open Source .NET API for working with MS Outlook MSG and EML files

Read MS Outlook MSG and EML files, Save email attachments, and read message properties from within .NET applications.

What is MsgReader API for .NET?

MSGReader is a robust, open-source .NET API designed for developers who need to read and process Microsoft Outlook MSG and EML files within their applications. Whether it's extracting emails, appointments, tasks, or contact details, this API makes it seamless to handle various Outlook objects without relying on Outlook itself. With support for diverse body types like plain text, HTML, and RTF, along with attachment management and charset detection, MSGReader offers a comprehensive solution for efficient MSG file handling in .NET environments.

MsgReader for .NET API - Key Features

Following are some of the main features of MsgReader:

  • Comprehensive Object Support: Read emails, appointments, tasks, contact cards, and sticky notes from Outlook MSG files.
  • Diverse Body Type Handling: Supports text, HTML, HTML embedded in RTF, and RTF formats for message bodies.
  • Attachment Management: Allows for the extraction, removal, and saving of attachments within MSG files.
  • Charset Detection: Automatically detects character set encoding in HTML bodies, especially when embedded in RTF.
  • Ease of Use: Simple API for integration into .NET projects, with straightforward methods for data extraction.
  • NuGet Package: Available as a NuGet package, making it easy to install and update within .NET projects.
  • Open Source: Licensed under MIT, allowing for free use in both commercial and non-commercial projects.
GitHub

GitHub Stats

Name:
Language:
Stars:
Forks:
License:
Repository was last updated at

Getting Started with MSGReader for .NET API

You can download the MSGReader library from GitHub or nuget.

Installation

Installing MSGReader API for .NET is simple and can be done from nugget as shown below:

Installing MSGReader API for .NET


 Install-Package MSGReader

Code Examples for MSGReader API for .NET

You can use the MSGReader API to work with Outlook MSG and EML files right from within your .NET applications. This lets you create .NET applications to read and process email messages including archiving systems. Following code samples demonstrate how to use MSGReader API in your .NET application.

How to Read properties from an Outlook (MSG) Message in .NET?

In order to read properties from an Outlook (MSG) file, the following steps can be used.

  • Install MSGReader: Add the MSGReader library to your .NET project using the NuGet Package Manager in Visual Studio.
  • Include the Namespace: Import the required MSGReader namespace to access its functionalities.
  • Initialize the MSG File: Create an instance of the message class by providing the path to the MSG file.
  • Extract the Sender's Information: Access the sender's details from the MSG file.
  • Extract the Sent Date and Time: Retrieve the date and time when the email was sent.
  • Get the Recipients: Obtain the list of recipients for the "To" and "Cc" fields.
  • Extract the Subject: Access the subject line of the email.
  • Extract the Body Content: Retrieve the body content of the email, such as plain text or HTML.
  • Process the Extracted Information: Handle the extracted data as needed based on your application requirements.

How to add Read properties from an Outlook (EML) Message in .NET?

An EML file is an email file format in the MIME message format. MSGReader API for .NET can load an EML file and can read its properties such as recipient, subject, message body, etc. The following code sample demonstrates this.

Conclusion

MSGReader is a versatile and reliable solution for .NET developers looking to manage Outlook MSG and EML files effortlessly. Its broad support for various Outlook objects, seamless handling of body content, and efficient attachment management make it a valuable tool for any project requiring email data extraction and processing. As an open-source, MIT-licensed library, it offers both flexibility and ease of integration, making it suitable for a wide range of applications, from data analysis to email automation, without the need for Outlook installation.

Similar Products

 English