MimeKit 2.6.0

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 (more than 25x faster than OpenPOP.NET and over 100x faster than AE.Net.Mail and MailSystem.NET).

     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 massive limitations or bugs.

     API documentation can be found on the web at http://www.mimekit.net/docs

     For those that need SMTP, POP3 or IMAP support, check out https://github.com/jstedfast/MailKit

Requires NuGet 2.12 or higher.

Install-Package MimeKit -Version 2.6.0
dotnet add package MimeKit --version 2.6.0
<PackageReference Include="MimeKit" Version="2.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MimeKit --version 2.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

* Fixed the MimeEntity.ContentId setter to use ParseUtils.TryParseMsgId() instead of MailboxAddress.TryParse() so that it is more lenient in what it accepts. (issue #542)
* Added an HtmlTokenizer.IgnoreTruncatedTags property which is useful when working with truncated HTML.
* Optimized the heck out of HtmlEntityDecoder.
* Added a TextPart.Format property for a quick way to determine the type of text it contains.
* Added text/plain and text/html preview/snippet generators (PlainTextPreviewer and HtmlTextPreviewer, respectively). This is part of a larger improvement to MailKit's text preview feature for IMAP. (MailKit issue #1001)
* Fixed SqlCertificateDatabase to accept null SubjectKeyIdentifiers.
* Changed Header.FormatRawValue() to be protected virtual and added Header.SetRawValue() to allow developers to override the default formatting behavior by either subclassing Header or by calling header.SetRawValue(). (issue #546)
* Switched MimeKit for Android and iOS over to using Portable.BouncyCastle.
* Added MimeTypes.Register() to allow developers to register their own mime-type mappings to file extensions.

Showing the top 10 GitHub repositories that depend on MimeKit:

Repository Stars
Store securely encrypted backups in the cloud!
A cross-platform .NET library for IMAP, POP3, and SMTP.
A high-performance, extensible, modular and cross-platform workflow engine and automation platform.
A .NET MIME creation and parser library with support for S/MIME, PGP, DKIM, TNEF and Unix mbox spools.
Welcome to the Bot Framework Solutions repository which is the home for a set of templates and solutions to help build advanced conversational experiences using Azure Bot Service and Bot Framework. Microsoft Bot Framework is a comprehensive framework for building enterprise-grade conversational AI experiences.
ASP.NET Core multi-tenant web application foundation with management for sites, users, roles, claims and more
smtp4dev - the fake smtp email server for development and testing
Scan documents to PDF and other file types, as simply as possible.
Exploring a new web architecture with React, Redux, Orleans and Dotnet Core
A SMTP Server component written in C#

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated
2.6.0 0 4/4/2020
2.5.2 18,920 3/14/2020
2.5.1 105,670 2/15/2020
2.5.0 145,225 1/18/2020
2.4.1 415,743 11/10/2019 42,906 11/5/2019
2.4.0 13,400 11/3/2019
2.3.2 142,063 10/12/2019
2.3.1 339,581 9/8/2019
2.3.0 233,615 8/24/2019
2.2.0 804,865 6/11/2019 323,161 5/13/2019
2.1.4 260,016 4/13/2019
2.1.3 532,597 2/24/2019
2.1.2 538,070 12/30/2018
2.1.1 104,389 12/16/2018
2.1.0 176,688 12/1/2018
2.0.7 135,060 10/28/2018
2.0.6 884,780 8/4/2018
2.0.5 237,011 7/7/2018
2.0.4 309,867 5/21/2018
2.0.3 294,222 4/14/2018
2.0.2 102,637 3/17/2018
2.0.1 555,409 1/6/2018
2.0.0 85,885 12/22/2017
1.22.0 263,633 11/24/2017
1.20.0 230,452 10/28/2017
1.18.1 428,823 9/3/2017
1.18.0 116,463 8/7/2017
1.16.2 327,919 7/1/2017
1.16.1 305,144 5/5/2017
1.16.0 74,917 4/21/2017
1.14.1 32,376 4/9/2017
1.14.0 82,310 4/9/2017
1.12.0 128,426 3/12/2017
1.10.1 110,431 1/28/2017
1.10.0 505,361 10/31/2016