1. 程式人生 > >javax.mail.AuthenticationFailedException: 535 authentication failed

javax.mail.AuthenticationFailedException: 535 authentication failed

Exception in thread “main” javax.mail.AuthenticationFailedException: 535 Error: authentication failed

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at com.bh.mail.MailSender.main(MailSender.java:30)

這個是驗證沒通過,需要檢查一下以下幾點:
1、你的使用者名稱和密碼是否正確
2、你的郵箱服務是否是你的的傳送郵箱
例如:你的郵箱服務為:smtp.163.com,而你的傳送郵箱就必須是[email protected];接收郵箱隨便。

相關推薦

java mail: javax.mail.AuthenticationFailedException: 535 authentication failed

javax.mail.AuthenticationFailedException: 535 Error: authentication failed at com.sun.mail.smtp.SMTPT

javax.mail.AuthenticationFailedException: 535 authentication failed

Exception in thread “main” javax.mail.AuthenticationFailedException: 535 Error: authentication fai

javax.mail.AuthenticationFailedException: 535 Error: ÇëʹÓÃÊÚȨÂëµÇ¼¡£ÏêÇéÇë¿問題

        今天在做郵件傳送啟用帳戶的時候,報瞭如下錯誤:    javax.mail.AuthenticationFailedException: 535 Error: ÇëʹÓÃÊÚȨÂëµÇ¼¡£ÏêÇé

javax.mail.AuthenticationFailedException: failed to connect, no password specified?

今天在本地測試定時任務傳送郵件時,控制檯報錯,字母意思是身份驗證有問題。在配置檔案中沒有指定使用者名稱和密碼,郵件伺服器也沒有提供相應的身份驗證方法,所以要設定SMTP協議中的身份校驗 `mail.smtp.auth` 設定`false` ,這時即可傳送正常~ org.sprin

[Android]異常4-javax.mail.AuthenticationFailedException

llb src pop set com ava smtp exceptio .net javax.mail.AuthenticationFailedException 背景:JavaMail發送電子郵件 異常原因: 可能一>發件人帳號、密碼有誤 可能二>需要使用

關於oozie在發郵件的報錯Caused by: javax.mail.AuthenticationFailedException

今天在做在hue當中,實現oozie的排程然後傳送郵件到郵箱的操作報錯資訊如下:  org.apache.oozie.action.ActionExecutorException: EM007: Encountered an error whi

javax.mail.AhenticationFailedException: 535 Err / A secure connection is requiered(java發郵件)

Java發郵件的幾種方式: JavaMail Commons Email Spring Mail 實驗場景: Spring Mail、Web Project 具體描述: 郵件伺服器: s

關於發郵件報錯535 Error:authentication failed&553 authentication is required

情況 .get com bubuko ace 授權 message ssi img 553 authentication is required:這個錯誤的意思是你必須需要認證。 也就是說,你連接smtp服務器的時候必須使用密碼來連接:下面代碼紅色那句 代碼: 1 @O

Java開發郵件激活功能遇到550 用戶無權登陸/535 Error: authentication failed

宋體 post 授權碼 RR 驗證 ima 登陸 技術分享 img 1,Java開發,註冊用戶使用郵箱激活時出現“550 用戶無權登陸”的報錯 原因分析:默認126郵箱或163郵箱不開啟客戶端授權驗證,需要手動設置客戶端授權碼 設置方法如圖所示:登錄126郵箱,開啟授權碼。

org.springframework.mail.MailSendException: Failed messages: javax.mail.SendFailedException: Invalid Addresses

toa false ssa net 代碼 ati private res erb 問題 org.springframework.mail.MailSendException: Failed messages: javax.mail.SendFailedException:

SpringBoot傳送郵件遇到的錯誤:org.springframework.mail.MailAuthenticationException: Authentication failed;

SpringBoot傳送郵件時遇到的異常:org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.Authentic

javaMail使用163郵箱報535 Error: authentication failed

javaMail使用網易163郵箱或者是126或者是網易其他郵箱報535 Error: authentication failed javax.mail.AuthenticationFailedException: 535 Error: authentication failed at com.sun.ma

JavaMail開發535 5.7.8 authentication failed錯誤處理

手動新增密碼驗證即可: Session session = Session.getInstance(props,new Authenticator() { protected PasswordA

spring傳送郵件時遇到錯誤org.springframework.mail.MailAuthenticationException: Authentication failed;

spring 傳送郵件時遇到異常org.springframework.mail.MailAuthenticationException org.springframework.mail.MailAuthenticationException: Authentication

org.springframework.mail.MailAuthenticationException: Authentication failed

用Spring傳送郵件的出現這個錯誤,程式碼如下: JavaMailSenderImpl mailSender = new JavaMailSenderImpl(); mailSender.setHost(properties.getProperty("HOS

記錄一個奇怪的錯誤,javax.mail.MessagingException: Failed to load IMAP envelope(Android development)

前言 遇到問題,多溝通,冷靜分析,即能解決! 錯誤截圖 上面兩個圖就是出現這個錯誤的log,我用的是JavaMail1.6.0正式版,使用IMAP收取公司郵箱郵件的時候出現的這個問題,可

MongoDB3.4安裝配置以及與Robomongo1.1的連接——解決Authentication Failed導致的不能連接問題

class .exe oca with www 解決方法 comm ror 命令 本文環境:win10(64)+MongoDB(3.4.5)+Robomongo(1.1) 目錄: MongoDB的安裝 MongoDB的配置 Robomongo的安裝以及與MongoDB的連

pg_dump: [archiver (db)] connection to database “dbase” failed: FATAL: Peer authentication failed for user “postgres”

fff explicit lin fine dont password all ide cal "Peer authentication" means that it‘s comparing your database username against your Linux

mongoexport遭遇Authentication failed

mat database ida esc word roles detailed step obj 今天使用mongoexport工具導出數據,遇到權限不足報錯:[host]$mongoexport -h 10.31.11.190:23820 -udbmgr -pMgr2

sourcetree Authentication failed

sta bit ref cati bitbucket com mac quest authent sourcetree 的 git 密码存在 mac 的 钥匙&#