This isn't what I would call an actual tutorial, it's more like a very useful tip.
PLEASE NOTE: I'm not claiming that this is the only way to fix the issue, or even the correct way. But this solution has been working for me since last year.
If you or your app users have activated Google 2-Step account login verification, you might want to check your apps through Gmail to make sure it's still sending emails. You might find that the usual Google password might not authenticate the sending of emails through your app. Basically you or your app users have to generate an app email password under https://security.google.com/settings/security/apppasswords. This is specifically for sending emails through Gmail through apps. The above link is only if 2-Step verification has been activated on the account. If 2-Step verification isn't active, you or your app users can just use the normal Gmail password.
The following link will also help:
https://support.google.com/accounts/troubleshooter/3141849?hl=en#ts=3202254,3202256
Error message:
You will receive the following error message even though you're entering the correct Google email address and password.
java.lang.RuntimeException: Empty writer returned: 530-5.5.1 Authentication Required. Learn more at
Generating an app password fixes the problem if 2-Step verification is activated.
Cheers and I hope that this post is in the correct place...
PLEASE NOTE: I'm not claiming that this is the only way to fix the issue, or even the correct way. But this solution has been working for me since last year.
If you or your app users have activated Google 2-Step account login verification, you might want to check your apps through Gmail to make sure it's still sending emails. You might find that the usual Google password might not authenticate the sending of emails through your app. Basically you or your app users have to generate an app email password under https://security.google.com/settings/security/apppasswords. This is specifically for sending emails through Gmail through apps. The above link is only if 2-Step verification has been activated on the account. If 2-Step verification isn't active, you or your app users can just use the normal Gmail password.
The following link will also help:
https://support.google.com/accounts/troubleshooter/3141849?hl=en#ts=3202254,3202256
Error message:
You will receive the following error message even though you're entering the correct Google email address and password.
java.lang.RuntimeException: Empty writer returned: 530-5.5.1 Authentication Required. Learn more at
Generating an app password fixes the problem if 2-Step verification is activated.
Cheers and I hope that this post is in the correct place...
Last edited: