If you are using javax.mail APIs and provided correct credentials for your Gmail account and still getting “javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure)” error then there are high chances that you might have forgotten to relax the security of your Gmail account.
You can use this link to allow less secure apps to access your Gmail (which obviously makes your account vulnerable and thus isn’t recommended)
Comments
Post a Comment