# 工作筆記 #2 - SMTP 伺服器連線問題 問題 --- > System.Net.Mail.SmtpException was unhandled _HResult=-2146233088 _message=SMTP 伺服器需要安全連接,或用戶端未經驗證。 伺服器回應為: 5.5.1 Authentication Required. Learn more at... <br /> 解決步驟 --- > 開啟 Gmail 設定 IMAP * 進入設定 ![](https://i.imgur.com/8NxeM0o.png) <br /> * 選擇 [ 轉寄和 POP/IMAP ] 頁籤 ![](https://i.imgur.com/Xa7RcwR.png) <br /> * 啟用 IMAP ![](https://i.imgur.com/ngR3mQm.png) <br /> * 開啟 [ 低安全性應用程式存取權 ] > https://myaccount.google.com/lesssecureapps ![](https://i.imgur.com/qycCkbQ.png) <br /> ###### tags: `SMTP` `5.5.1 Authentication Required` --- 參考資料 > https://blog.no2don.com/2021/01/c-gmail-smtp-server-requires-secure.html