开发者

How do I send e-mail using .NET 4 if smtp server requires authorization?

开发者 https://www.devze.com 2023-02-14 00:24 出处:网络
How to send e-mail using .NET 4 if smtp s开发者_StackOverflow中文版erver requires authorization?Pass credentials to the Smtp Server variable

How to send e-mail using .NET 4 if smtp s开发者_StackOverflow中文版erver requires authorization?


Pass credentials to the Smtp Server variable

smtpServerInstance.Credentials = new NetworkCredential("user", "password"); 
smtpServerInstance.Send(mail);
0

精彩评论

暂无评论...
验证码 换一张
取 消