简体   繁体   中英

Send an email using mailKit in MVC 5

I am trying to find a basic step-by-step tutorial to send an email in ASP.NET using mailKit but every tutorial talks about ASP.NET Core.

Can anyone point me to right direction? What should I use to send emails in MVC 5 and link a step-by-step tutorial?

I do not want to use smtpClient class as it is obsolete now.

使用 MailKit 发送电子邮件的代码在 ASP.NET MVC 5 和 ASP.NET Core 中是相同的。

https://gist.github.com/wattanar/e8cee974456fd80d9ce649d951f36608 Check this code; it is an example :) Might help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM