本文介绍了System.Net.Mail.SmtpClient在4.7中过时了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
几天前,我访问了博客,其中说 System.Net.Mail.SmtpClient 已过时,开源库 MailKit 和 MimeKit 替换。
Few days back I visited a blog that said System.Net.Mail.SmtpClient is obsolete and an open source library MailKit and MimeKit is replacing it.
我可以看到 docs ,但在参考代码并在库中。是不是已经过时了?
I can see docs for that but not finding the same in reference code and in library. Is it obsolete or not?
[System.Obsolete("SmtpClient and its network of types are poorly designed, we strongly recommend you use github/jstedfast/MailKit and github/jstedfast/MimeKit instead")] public class SmtpClient : IDisposable推荐答案
正如Liam指出的那样,由于文档中的错误,这已经过时了。 是System.Net.Mail .smtpClient在4.7中过时了?
As Liam pointed out, this is obsolete due to a bug in documentation. Is System.Net.Mail.SmtpClient obsolete in 4.7?
更多推荐
System.Net.Mail.SmtpClient在4.7中过时了吗?
发布评论