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
Asked
Active
Viewed 181 times
-2
-
1Post your code please – ByteHamster Mar 04 '15 at 17:45
-
copy and pate the code in that link – user3441466 Mar 04 '15 at 19:31
1 Answers
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