System.Net.Mail.SmtpClient在4.7中过时了吗? [英] Is System.Net.Mail.SmtpClient obsolete in 4.7?

查看:77
本文介绍了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 https://github.com/jstedfast/MailKit and https://github.com/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中过时了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆