Closed. This question needs to be more focused。它当前不接受答案。












想要改善这个问题吗?更新问题,使它仅关注editing this post的一个问题。

4年前关闭。



Improve this question




我想通过.net Core使用SMTP服务器发送电子邮件。
请解释

最佳答案

通过.net核心框架,您现在无法保持现状。

在撰写本文时,.net核心版本1.1实现了1.6的.net标准。当时,尚未移植System.Net.Mail。但是正如您通过此拉取请求可以看到的:https://github.com/dotnet/corefx/pull/12416。看起来它即将加入.net Standard 2.0(然后可能会在下一个.net core版本中实现)。

同时,似乎每个人都在使用MailKit库(https://github.com/jstedfast/MailKit),它运行良好!

关于c# - 使用.Net Core中的smtp服务器发送电子邮件?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41583858/

10-17 02:31