-2

i want to send email in android in my app by javamail and i get AuthenticationFailedException can anyone help me i use this link for sen mail Sending Email in Android using JavaMail API without using the default/built-in app

Community
  • 1
  • 1
user3441466
  • 43
  • 1
  • 6

1 Answers1

1

AuthenticationFailedException means the server thinks you've supplied the wrong username or password, or even though you've supplied the right username and password, the server still doesn't want to allow you to login. Why not? Well, the JavaMail debug output might provide clues. If you're using Gmail, you'll need to enable less secure apps.

Bill Shannon
  • 29,579
  • 6
  • 38
  • 40