System.Net.Mail.SmtpClient在4.7中过时了吗?

编程入门 行业动态 更新时间:2024-10-28 13:21:21
本文介绍了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中过时了吗?

本文发布于:2023-08-07 10:18:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1318579.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Net   System   Mail   SmtpClient

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!