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

前端 未结 10 1457
臣服心动
臣服心动 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条回答
  •  清歌不尽
    2020-12-03 08:10

    I have the same error but when I run the app from the terminal, it goes away. My email configuration is provided:

    spring.mail.host=smtp.googlemail.com
    spring.mail.username=weddingcard9999@gmail.com
    spring.mail.password=Weddingcard.1
    spring.mail.port=587
    spring.mail.properties.mail.smtp.starttls.enable=true
    spring.mail.properties.mail.smtp.auth=true
    spring.mail.properties.mail.smtp.starttls.required=true
    

提交回复
热议问题