javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted

前端 未结 10 1459
臣服心动
臣服心动 2020-12-03 07:33

I am getting this error when I try to send mail using the JavaMail API:

javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accept         


        
10条回答
  •  猫巷女王i
    2020-12-03 08:11

    It works for me, you must configure your Gmail account with the below steps:

    In the security section:

    You need to Change "Allow less secure apps: OFF" to "Allow less secure apps: ON"

提交回复
热议问题