C# 發郵件 服務器響應為: 5.7.0 Must issue a STARTTLS command first


The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. d21sm2344514and.26

SMTP 服務器要求安全連接或客戶端未通過身份驗證。 服務器響應為: 5.7.0 Must issue a STARTTLS command first. i6sm4954143tid.5

今天用Gmail的發送郵件,返回這錯誤.查了下是因為Gmail要求把ssl加密打開.

加上這代碼:client.EnableSsl = true;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM