-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GMail sending with 2FA and app password doesn't work #118
Comments
GMail will require you to use XOAUTH to authenticate. Please look at this PR: #94 You need to create a google app for it and get a token, either from the command line or using the oauth2 client after you setup the app. I'll keep this issue open as a reminder that this information needs to be added to the manual. |
Ok, so you can try a different thing. If the application password works, perhaps you should block Look for the auth algorithms options on the mail client options. By default if none is set the following list is used:
So if you would remove the first one, by saying:
And you can even remove more if you know the SASL used by |
So, what was the solution for this issue? |
This solved the issue for me: mailConfig.setAuthMethods("DIGEST-MD5, CRAM-SHA256, CRAM-SHA1, CRAM-MD5, PLAIN, LOGIN"); |
Hi @KlausSchaefersAtWork, with #124 fixed in |
Hi, I cannot easily move to 4.0, I am stuck with 3.9. But thanks for letting me know. I will try to upgrade to Vertx 4.x in the next weeks. |
I have enabled 2FA and I generated app password for my account.
When I supply configuration in mail-sender.zip sample app , I'm getting an error:
The text was updated successfully, but these errors were encountered: