Sending a Email using smtp server in .Net Core? [c

2019-05-01 11:13发布

I would like to send email using SMTP server through .net Core.
Please explain

1条回答
We Are One
2楼-- · 2019-05-01 12:07

Through the .net core framework, you can't as it stands right now.

At the time of writing .net core version 1.1 implements the .net standard of 1.6. At that point in time, System.Net.Mail had not been ported. But as you can see by this pull request : https://github.com/dotnet/corefx/pull/12416 . It looks it's going to make it into .net Standard 2.0 (Which will likely then be implemented in the next version of .net core).

In the meantime, it seems like everyone is using the library MailKit (https://github.com/jstedfast/MailKit) which works pretty well!

查看更多
登录 后发表回答