ASP.NET Hack Advent Post 14: MailKit

This fourteenth post is about a cross-platform .NET library for IMAP, POP3, and SMTP.

On Twitter I got asked about sending emails out from a worker service. So I searched for the documentation about System.Net.Mail and the SmtpClient Class and was really surprised that this class was marked as obsolete. It seems I missed the announcement about this.

The .NET team recommend to use the MailKit and MimeKit to send emails out.

Both libraries are open sourced under the MIT license and free to use in commercial projects. It seems that this libraries are really complete and provide a lot of useful features.

Website: http://www.mimekit.net/

MailKit:

GitHub: https://github.com/jstedfast/MailKit

NuGet: https://www.nuget.org/packages/MailKit/

MimeKit:

GitHub: https://github.com/jstedfast/MimeKit

NuGet: https://www.nuget.org/packages/MimeKit/