通过 java mail AuthenticationFailedException 在 android 中发送邮件

send mail in android via java mail AuthenticationFailedException

我想在 android 中通过 javamail 在我的应用程序中发送电子邮件,但我收到 AuthenticationFailedException 任何人都可以帮助我 我用这个 link 来发送邮件 Sending Email in Android using JavaMail API without using the default/built-in app

AuthenticationFailedException 表示服务器认为您提供了错误的用户名或密码,或者即使您提供了正确的用户名和密码,服务器仍然不允许您登录。为什么不?那么,JavaMail debug output might provide clues. If you're using Gmail, you'll need to enable less secure apps.