javax.mail.AuthenticationFailedException

535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://mail.google.com/support/bin/answer.py?answer=14257 f2sm11154782wfp.23

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web146

  • via Unknown by boney,
  • via Stack Overflow by Michael Massey
    ,
  • Stack trace

    • javax.mail.AuthenticationFailedException: 535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://mail.google.com/support/bin/answer.py?answer=14257 f2sm11154782wfp.23 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:291) at com.google.code.samples.xoauth.XoauthAuthenticator.connectToSmtp(XoauthAuthenticator.java:155) at com.google.code.samples.xoauth.XoauthAuthenticator.main(XoauthAuthenticator.java:201)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitor2 times, last one
    rocdayrocday
    2 times, last one
    aidoanaidoan
    Once,
    63 more bugmates