• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support

DRIT.Mail Documentation

DRIT.Mail is an open-source .NET library for reading, writing, converting, and manipulating email messages and mailbox stores across a wide range of formats.

Start here

  • Example catalog
  • API reference
  • DRIT.Mail product page
  • DR-IT documentation index

Installation

dotnet add package DRIT.Mail --version 26.7.878

Features

  • Load and save mail messages in MSG, EML, MBOX, PST, HTML, ICS, and VCF formats.
  • Access the underlying MAPI message model.
  • Parse and build MIME messages (RFC 2045).
  • Send mail via SMTP and receive via POP3 and IMAP.
  • Work with iCalendar (ICS) events and vCard (VCF) contacts.
  • Sign and verify messages with DKIM and S/MIME.
  • Convert between MSG, EML, MBOX, and PST formats.
  • Search messages across PST and MSG stores.
  • Compare MAPI messages and validate PST and MSG structures.

Quick start

using DRIT.Mail;

IMailMessage mail = MailFile.Load("message.msg");
MapiMessage mapi = mail.MapiMessage;
Console.WriteLine(mapi.Subject);
mail.Save("message.eml", MailMessageFormat.Eml);

The public DRIT.Mail repository contains the source, examples, and project information.

  • Improve this Doc
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX