How I can transform my C# code : System.Web.Mail“ transform by ”System.Net.Mail"

前端 未结 1 561
天涯浪人
天涯浪人 2021-01-17 09:23

I am using \"System.Web.Mail\" to send e-mail via SMTP using C# with my following code. It is working but I think It is obsolete

So I want use \"

相关标签:
1条回答
  • 2021-01-17 09:42

    Take a look at this: SmtpClient.Send

    SmtpClient substitutes SmtpMail and works almost exactly the same.

    0 讨论(0)
提交回复
热议问题