How do I send e-mail using .NET 4 if smtp server requires authorization?
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);
精彩评论