Home United States USA — software MailKit Officially Replaces. NET’s SmtpClient

MailKit Officially Replaces. NET’s SmtpClient

262
0
SHARE

For the second time, Microsoft has officially marked a. NET class as being replaced by an open source library. The documentation for SmtpClient now reads, “Obsolete(“SmtpClient and its network of types are poorly designed, we strongly recommend you use MailKit and MimeKit instead”)”.
For the second time, Microsoft has officially marked a. NET class as being replaced by an open source library. The documentation for SmtpClient now reads, “Obsolete(“SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead”)”.
MailKit and MimeKit were created by Jeffrey Stedfast, whom we interviewed in 2014. Even back then they were considered to be the most comprehensive MIME and email libraries for. NET.
The first major open source library that Microsoft embraced was Newtonsoft’s JSON. NET. Used extensively in ASP. NET WebAPI, this has officially recommended in lieu of the JavaScriptSerializer class and is generally preferred over the DataContractJsonSerializer class as well. Unlike SmtpClient, neither of those classes are marked as obsolete.
The main problem with SmtpClient is that it has a confusing connection lifecycle.

Continue reading...