smtpClient 信箱

smtpClient邮箱SMTP 伺服器需要安全連接,或用戶端未經驗證。 伺服器回應為: 5.7.1 Client was not authenti

smtpClient 邮箱
SMTP 伺服器需要安全連接,或用戶端未經驗證。 伺服器回應為: 5.7.1 Client was not authenticated

我用smtpClient写了个简易的邮箱发送功能
报了上述的异常
求解!!!!!!!!!!

[解决办法]
设置smtp的安全连接

smtp.EnableSsl = true;

[解决办法]
clint.Credentials = new System.Net.NetworkCredenttial("emailName","emailPassword")