MailKit 2.1.0.3
See the version list below for details.
Requires NuGet 2.12 or higher.
dotnet add package MailKit --version 2.1.0.3
NuGet\Install-Package MailKit -Version 2.1.0.3
<PackageReference Include="MailKit" Version="2.1.0.3" />
paket add MailKit --version 2.1.0.3
#r "nuget: MailKit, 2.1.0.3"
// Install MailKit as a Cake Addin #addin nuget:?package=MailKit&version=2.1.0.3 // Install MailKit as a Cake Tool #tool nuget:?package=MailKit&version=2.1.0.3
MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices.
Features include:
* Socks4, Socks4a and Socks5 proxy support.
* SASL Authentication via SCRAM-SHA-256, SCRAM-SHA-1, NTLM, DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN, and XOAUTH2.
* A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8.
* A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG.
* A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, LIST-EXTENDED, ESORT, METADATA / METADATA-SERVER, NOTIFY, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE / CREATE-SPECIAL-USE, SEARCH=FUZZY, MOVE, UTF8=ACCEPT / UTF8=ONLY, LITERAL-, APPENDLIMIT, STATUS=SIZE, OBJECTID, XLIST, and X-GM-EXT1.
* Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported).
* Asynchronous versions of all methods that hit the network.
* S/MIME, OpenPGP and DKIM signature support via MimeKit.
* Microsoft TNEF support via MimeKit.
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5
- BouncyCastle (>= 1.8.2)
- MimeKit (>= 2.1.0)
-
.NETStandard 1.3
- MimeKit (>= 2.1.0)
- NETStandard.Library (>= 1.6.1)
- Portable.BouncyCastle (>= 1.8.2)
- System.Data.Common (>= 4.3.0)
- System.Globalization.Extensions (>= 4.3.0)
- System.Net.Http (>= 4.3.0)
- System.Net.NameResolution (>= 4.3.0)
- System.Net.NetworkInformation (>= 4.3.0)
- System.Net.Security (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Text.Encoding.CodePages (>= 4.3.0)
-
.NETStandard 1.6
- MimeKit (>= 2.1.0)
- NETStandard.Library (>= 1.6.1)
- Portable.BouncyCastle (>= 1.8.2)
- System.Data.Common (>= 4.3.0)
- System.Globalization.Extensions (>= 4.3.0)
- System.Net.Http (>= 4.3.0)
- System.Net.NameResolution (>= 4.3.0)
- System.Net.NetworkInformation (>= 4.3.0)
- System.Net.Security (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Text.Encoding.CodePages (>= 4.3.0)
-
.NETStandard 2.0
- MimeKit (>= 2.1.0)
- NETStandard.Library (>= 1.6.1)
- Portable.BouncyCastle (>= 1.8.2)
- System.Data.Common (>= 4.3.0)
- System.Globalization.Extensions (>= 4.3.0)
- System.Net.Http (>= 4.3.0)
- System.Net.NameResolution (>= 4.3.0)
- System.Net.NetworkInformation (>= 4.3.0)
- System.Net.Security (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Text.Encoding.CodePages (>= 4.3.0)
-
MonoAndroid 0.0
- MimeKit (>= 2.1.0)
-
Portable Class Library (Windows 8.1, WindowsPhoneApp 8.1)
- MimeKit (>= 2.1.0)
- Portable.BouncyCastle (>= 1.8.2)
-
Xamarin.iOS 0.0
- MimeKit (>= 2.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MailKit:
Package | Downloads |
---|---|
MailMergeLib
A test copy of MailMergeLib. Do not use, the package will be deleted from this environment after testing. Use the package from nuget.org. MailMergeLib is an SMTP mail client library which provides comfortable mail merge capabilities for text, inline images and attachments, as well as good throughput and fault tolerance for sending mail messages. |
GitHub repositories (127)
Showing the top 5 popular GitHub repositories that depend on MailKit:
Repository | Stars |
---|---|
ardalis/CleanArchitecture
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
|
|
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
|
|
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
|
|
duplicati/duplicati
Store securely encrypted backups in the cloud!
|
Version | Downloads | Last updated |
---|---|---|
3.2.0 | 64 | 9/19/2022 |
2.10.1 | 32,412 | 3/9/2021 |
2.3.1.6 | 0 | 3/8/2021 |
2.3.1 | 0 | 3/8/2021 |
2.3.0 | 0 | 3/8/2021 |
2.2.0 | 0 | 3/8/2021 |
2.1.5.1 | 0 | 3/8/2021 |
2.1.5 | 0 | 3/8/2021 |
2.1.4 | 0 | 3/8/2021 |
2.1.3 | 0 | 3/8/2021 |
2.1.2 | 0 | 3/8/2021 |
2.1.1 | 0 | 3/8/2021 |
2.1.0.3 | 0 | 3/8/2021 |
2.1.0.2 | 0 | 3/8/2021 |
2.1.0.1 | 0 | 3/8/2021 |
2.1.0 | 0 | 3/8/2021 |
2.0.7 | 1 | 3/8/2021 |
2.0.6 | 0 | 3/8/2021 |
2.0.5 | 0 | 3/8/2021 |
2.0.4 | 0 | 3/8/2021 |
2.0.3 | 0 | 3/8/2021 |
2.0.2 | 0 | 3/8/2021 |
2.0.1 | 0 | 3/8/2021 |
2.0.0 | 0 | 3/8/2021 |
1.22.0 | 0 | 3/8/2021 |
1.20.0 | 0 | 3/8/2021 |
1.18.1.1 | 24 | 3/8/2021 |
1.18.1 | 1 | 3/8/2021 |
1.18.0 | 16 | 3/8/2021 |
1.16.2 | 21 | 3/8/2021 |
1.16.1 | 22 | 3/8/2021 |
1.16.0 | 3 | 3/8/2021 |
1.14.2 | 0 | 3/8/2021 |
1.14.1 | 0 | 3/8/2021 |
1.14.0 | 0 | 3/8/2021 |
1.12.0 | 6 | 3/8/2021 |
1.10.2 | 2 | 3/8/2021 |
1.10.1 | 43 | 3/8/2021 |
1.10.0 | 32 | 3/8/2021 |
1.8.1 | 4 | 3/8/2021 |
1.8.0 | 0 | 3/8/2021 |
1.6.0 | 0 | 3/8/2021 |
1.4.2.1 | 6 | 3/8/2021 |
1.4.2 | 1 | 3/8/2021 |
1.4.1 | 0 | 3/8/2021 |
1.4.0 | 0 | 3/8/2021 |
1.3.0-rc1-1 | 2 | 3/8/2021 |
1.3.0-rc1 | 0 | 3/8/2021 |
1.3.0-beta7 | 0 | 3/8/2021 |
1.3.0-beta6 | 0 | 3/8/2021 |
1.3.0-beta5 | 0 | 3/8/2021 |
1.3.0-beta4 | 35 | 3/8/2021 |
1.3.0-beta3 | 160 | 12/16/2015 |
1.3.0-beta2 | 207 | 12/6/2015 |
1.3.0-beta1 | 124 | 12/5/2015 |
1.2.24 | 0 | 3/8/2021 |
1.2.23 | 1 | 3/8/2021 |
1.2.22 | 0 | 3/8/2021 |
1.2.21 | 1 | 3/8/2021 |
1.2.20 | 0 | 3/8/2021 |
1.2.19 | 0 | 3/8/2021 |
1.2.18 | 0 | 3/8/2021 |
1.2.17 | 0 | 3/8/2021 |
1.2.16 | 0 | 3/8/2021 |
1.2.15 | 1,093 | 11/29/2015 |
1.2.14 | 477 | 11/22/2015 |
1.2.13 | 1,898 | 10/18/2015 |
1.2.12 | 2,217 | 9/20/2015 |
1.2.11.1 | 1,025 | 9/8/2015 |
1.2.11 | 204 | 9/6/2015 |
1.2.10 | 1,545 | 8/16/2015 |
1.2.9 | 399 | 8/8/2015 |
1.2.8 | 1,016 | 7/19/2015 |
1.2.7 | 914 | 7/6/2015 |
1.2.6 | 841 | 6/25/2015 |
1.2.5 | 467 | 6/22/2015 |
1.2.4 | 697 | 6/14/2015 |
1.2.3 | 1,138 | 6/1/2015 |
1.2.2 | 213 | 5/31/2015 |
1.2.1 | 439 | 5/26/2015 |
1.2.0 | 248 | 5/24/2015 |
1.0.17 | 1,039 | 5/12/2015 |
1.0.16 | 336 | 5/10/2015 |
1.0.15 | 162 | 5/9/2015 |
1.0.14 | 2,357 | 4/11/2015 |
1.0.13 | 863 | 3/29/2015 |
1.0.12 | 522 | 3/21/2015 |
1.0.11 | 602 | 3/14/2015 |
1.0.10 | 486 | 3/8/2015 |
1.0.9 | 831 | 3/2/2015 |
1.0.8 | 718 | 2/19/2015 |
1.0.7 | 201 | 2/17/2015 |
1.0.6.1 | 805 | 1/18/2015 |
1.0.6 | 212 | 1/18/2015 |
1.0.5 | 622 | 1/8/2015 |
1.0.4 | 1,054 | 12/13/2014 |
1.0.3 | 855 | 12/5/2014 |
1.0.2 | 2,302 | 11/23/2014 |
1.0.1 | 1,771 | 10/27/2014 |
1.0.0 | 1,540 | 10/15/2014 |
0.98.0 | 2,142 | 9/14/2014 |
Changes for 2.1.0.3:
* Really fixed the bug in Connect() and ConnectAsync() this time. (issue #782)
Changes for 2.1.0.2:
* Fixed a bug in Connect() and ConnectAsync(). (issue #782)
Changes for 2.1.0.1:
* Fixed MailKit 2.1.0 to depend on MimeKit 2.1.0
Changes for 2.1.0:
* A number of fixes to bugs exposed in new unit tests for NTLM authentication.
* Made SmtpClient, Pop3Client, and ImapClient's Connect() methods truly cancellable as well as made the underlying socket.Connect() call adhere to any specified client.Timeout value.
* Added support for connecting via a SOCKS4, SOCKS4a, or SOCKS5 proxy server.
* Fixed ImapClient's OnAuthenticated() method to protect aganst throwing an ArgumentNullException when trying to emit the Authenticated event if the server did not supply any resp-code-text in the OK response to the AUTHENTICATE command. (issue #774)
* Modified ImapFolder.Create() to handle [ALREADYEXISTS] resp-codes.
* Fixed ImapFolder.Create() for GMail when the isMessageFolder is false (GMail doesn't handle it when the client attempts to create a folder ending with a directory separator).
* Optimized ImapFolder's fallback for UID COPY command when UIDPLUS is not supported.
* Reduced string allocations in the Connect(Uri) wrapper.
* Added new ConnectedEventArgs and DisconnectedEventArgs that are used with the Connected and Disconnected events to provide developers with even more useful information about what server, port and SecureSocketOptions were used when connecting the client.
* Fixed SmtpClient to immediately throw stream reading exceptions instead of ignoring them. (issue #776)
* Fixed ImapClient.GetFoldersAsync() to call ImapFolder.StatusAsync() instead of Status() when StatusItems are specified.
* Changed ImapFolder.GetSubfolders() to return IList<IMailFolder> instead of IEnumerable<IMailFolder>.
* Fixed ImapClient's NAMESPACE parser - it had Shared and Other namespace ordering reversed.
* Fixed ImapFolder.Create() (for special-use) to only use unique uses if any were specified multiple times.
* Modified ImapFolder.Open() to allow devs to re-Open() a folder with the same access in case they need to do this to work around an IMAP server bug(?).
* Fixed adding/removing/setting of GMail labels to use UTF-8 when enabled.
* Added support for the IMAP STATUS=SIZE extension which now provides a ImapFolder.Size property that specifies how large a folder is (in bytes). Clients can request this information using the StatusItems.Size enum with either ImapFolder.GetSubfolders() or ImapFolder.Status().
* Added support for the IMAP OBJECTID extension. ImapFolder and IMessageSummary now both have an Id property which is a globally unique identifier. IMessageSummary also now has a ThreadId property which is a unique identifier for the message thread/conversation that the message belongs to. This information can be retrieved for ImapFolders using ImapFolder.Status() with the new StatusItems.MailboxId enum value. The IMessageSummary.Id and ThreadId properties have the corresponding MessageSummaryItems enum values of Id and ThreadId, respectively.
* Added another work-around for bad GMail IMAP BODYSTRUCTURE responses. (issue #777)
* Fixed all integer TryParse methods to use NumberStyles.None and CultureInfo.InvariantCulture.
* Added Connect() and ConnectAsync() overloads which accept a Stream instead of a Socket.
* All ImapFolder.MessageFlagsChanged, ModSeqChanged, and LabelsChanged events will now also be followed by a MessageSummaryFetched event containing the combined information of those events.
* Added support for IMAP's NOTIFY extension. Many thanks to Steffen Kieß for getting the ball rolling on this feature by implementing the neccessary ImapEvent, ImapEventGroup, and ImapMailboxFilter classes as well as the initial support.
API Changes Since 2.0.x:
* Obsoleted SearchQuery.HasCustomFlags() and SearchQuery.DoesNotHaveCustomFlags(). These are now SearchQuery.HasKeywords() and SearchQuery.NotKeywords(), respectively.
* Obsoleted SearchQuery.DoesNotHaveFlags() in favor of SearchQuery.NotFlags().
* Obsoleted the IMessageSummary.UserFlags property in favor of IMessageSummary.Keywords.
* Obsoleted the MessageFlagsChangedEventArgs.UserFlags property in favor of MessageFlagsChangedEventArgs.Keywords.
* All IMailFolder.Fetch and IMailFolder.FetchAsync methods that took a HashSet<string> userFlags argument now take an IEnumerable<string> keywords argument. Note: this only affects you if your code used named method parameters (e.g. userFlags: myUserFlags).
Note to users upgrading from MailKit 1.x:
In order to authenticate using the XOAUTH2 SASL mechanism, you must now use the following approach:
client.Authenticate (new SaslMechanismOAuth2 (username, auth_token));