DRIT.Mail
Pure-managed .NET mail interoperability for applications that need to own the whole message workflow. Read, write, convert, secure, search, and exchange Outlook, Exchange, and internet-mail data without requiring Microsoft Outlook.
When DRIT.Mail fits
Choose DRIT.Mail when a service must migrate archives, extract structured data from messages, process mailboxes, build protocol clients, or preserve message fidelity across formats. The MAPI-oriented model keeps MSG and PST content accessible through the same message abstraction used by other supported formats.
Capabilities
- Mail files: MSG, PST, EML/MIME, MBOX, iCalendar, and vCard with attachments, embedded messages, named properties, multi-value properties, and RTF body handling.
- Protocols: SMTP, POP3, and IMAP with TLS, SASL, XOAUTH2, folders, flags, search, and IDLE support.
- Security: S/MIME signing, verification, encryption, and decryption; DKIM signing and verification with DNS key lookup.
- Archive operations: PST search folders, content search, structural validation, and property-level comparison for round-trip checks.
Format direction
| Format | Read | Write |
|---|---|---|
| MSG / PST | Yes | Yes |
| EML / MBOX | Yes | Yes |
| iCalendar / vCard | Yes | Yes |
| HTML | No | Yes |
| TNEF / winmail.dat | Yes | No |
Platform and quick start
Targets net48 and netstandard2.0 for compatible .NET Framework, .NET Core/.NET 5+, Windows, Linux, and macOS applications.
dotnet add package DRIT.Mail --version 26.7.878
IMailMessage message = MailFile.Load("input.eml");
message.Save("output.msg", MailMessageFormat.Msg);
message.Save("output.html", MailMessageFormat.Html);
Next steps
- Install from NuGet
- Read the GitHub README, tests, examples, and MIT license
- Contact DR-IT support for integration questions
License: MIT. HTML output and TNEF parsing have different read/write directions; verify the current README for edge cases before production use.