javax.mail.AuthenticationFailedException

使用javaMail進行發送郵件的時候出現此錯誤,異常原因可能是在設置密碼的時候出現了錯誤     private String username; //發件人郵箱賬號     private String password; //客戶端授權碼     private String smtpServer;//服務器   此時設置的password不是郵箱的登錄密碼,而是設置客戶端授權碼
相關文章
相關標籤/搜索