javax.mail.AuthenticationFailedException in Android

后端 未结 2 876
抹茶落季
抹茶落季 2021-01-18 20:06

I receive the below error message in my LogCat when trying to send an email from my Gmail account using JavaMail API.

11-09 11:04:14.385: W/System.err(18443)         


        
相关标签:
2条回答
  • 2021-01-18 20:16

    First, fix these common mistakes.

    Turn on Session debugging to see if the protocol trace gives any more clues about what's wrong.

    You may need to enable access for less secure apps.

    0 讨论(0)
  • 2021-01-18 20:19

    go to your mail and then click on my account and then select Sign-in & security option

    and then on bottom show Allow less secure apps: OFF is off so ON this option and now you can send background mail.

    thank you

    0 讨论(0)
提交回复
热议问题