NuGet Package MimeKit

MimeKit is an Open Source library for creating and parsing MIME, S/MIME and PGP messages on desktop and mobile platforms.

It also supports parsing of Unix mbox files.

Unlike any other .NET MIME parser, MimeKit's parser does not need to parse string input nor does it use a TextReader. Instead, it parses raw byte streams, thus allowing it to better support undeclared 8bit text in headers as well as message bodies.

It also means that MimeKit's parser is significantly faster than other .NET MIME parsers.

MimeKit's parser also uses a real tokenizer when parsing the headers rather than regex or string.Split() like most other .NET MIME parsers. This means that MimeKit is much more RFC-compliant than any other .NET MIME parser out there, including the commercial implementations.

In addition to having a far superior parser implementation, MimeKit's object tree is not a derivative of System.Net.Mail objects and thus does not suffer from System.Net.Mail's limitations.

API documentation can be found on the web at

For those that need SMTP, POP3 or IMAP support, check out

Got any MimeKit Question?


Version: 4.0.0
Author(s): Jeffrey Stedfast
Last Update: Saturday, April 15, 2023
.NET Fiddle: Online Example
Project Url:
NuGet Url:

Install-Package MimeKit
dotnet add package MimeKit
paket add MimeKit
MimeKit Download (Unzip the "nupkg" after downloading)

.NETFramework 4.5 .NETFramework 4.7 .NETStandard 2.0 net46 net48 netstandard2.1 90 packages depend on this package.