-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer] Support OAuth2 #48888
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
Comments
Thank you for this suggestion. |
Hi,Do you have a support plan? |
Someone (could be you) would have to work on a pull request. |
Any progress on this one maybe? |
Actually, I ended up switching to the Microsoft Graph API for sending emails. Basically I had to :
If you think it's worse a package, please tell my, I might find some time to do it. Else ping me if you want me to share the code in a gist. Cheers! |
Hi @nguyenk, thanks for offering to share your code! Could you please create a Gist with it? That would be very helpful :) |
Hello @limenet here you go ! https://gist.github.com/nguyenk/15dd504dbcf7322807cb8f93371937d7 Any issue please ask @xabbuh If you think it's worth a PR, I'll be happy to contribute. I think the more logical would be creating a new 3rd party transport : |
@ngyuenk please do so |
Thank you for this suggestion. |
@carsonbot sure ! I'm almost done with my PR #52546 |
Thank you for this suggestion. |
Friendly ping? Should this still be open? I will close if I don't hear anything. |
This functionality is needed. We are waiting for it. What if SMTP Auth stops working on Google? |
There is an open PR that looks stalled. Help welcome if you need this feature. |
Gmail stopped SMTP auth by login/password. It's catastrophic (( |
This is a real blocker. |
Hello everyone, for now I can only remind that you can implement your onw transport like in this gist: https://gist.github.com/nguyenk/15dd504dbcf7322807cb8f93371937d7 It's implemented over MS Graph API, but I think switching it to GMAIL could be quite similar. |
@akaDJon @sophie-la-li if this is a blocker for you, maybe you could contribute. Mailer bridges are updated based on community contributions. |
@akaDJon @sophie-la-li Please check discussion on PR (it's not far from being ready I think) : #52546 |
According to this article: https://support.google.com/a/answer/14114704?hl=en&src=supportwidget0&authuser=0 |
For anyone using Google Workspace accounts, that feature was killed off by Google as of May 1st, 2025: Starting May 1, 2025, Google Workspace accounts no longer support less secure apps, third-party apps, or devices that ask you to sign in to your Google Account with your username and password. You must use OAuth to let these apps and devices access your account. Third-party email apps that are no longer supported include Microsoft Outlook and the mail app on iOS and MacOS. For detailed instructions and information, visit Transition from less secure apps to OAuth. For the latest dates, visit Google Workspace Updates. |
Can't confirm. On our end the app passwords are still working. Note that app passwords are not account passwords. You have to set up 2fa for the Google Account and retrieve a bespoke app password. ( https://support.google.com/accounts/answer/185833?sjid=1472586306713202151-EU ) |
Google WORKSPACE accounts is where this no longer functions. It is their paid accounts. I did not test with the unpaid gmail service though a user above mentioned this affects them. Here is the Google support article where this is quoted from. https://support.google.com/a/answer/176600?hl=en I'm not at a computer to be able to grab screenshots/urls/exact error wording, but can update later if that would help. I did not find anything relevant in logs as i was using the test email function. I attempted the steps anyways, turned on 2fa (the link to create an app password would not generate one without it enabled. I toggled it to be sure. 2fa off and app passwords were not an option. (Something like "this feature is not available for your account.") Turn it back on and I could set one again. Gives a 16 character password in 4 groups of 4. I put the app password into my nextcloud email settings, and clicked to send test mail. It replied with email sent, but nothing was received. To check the password was input correctly, i took a character out, and it failed to authenticate when sending the test mail. Tried a few different times, toggled between SSL and None, 465 and 587, etc for good measure even after reading the "killed by google" notice in their support articles. My solution may be to migrate my domain to a better email provider, but for those who don't have that ability, getting oauth working with email may be important. |
@DanCocoDotCom we are paying GSuite customers. It's still working here. Still you are right with the conclusion that we should switch to OAuth whenever possible. App passwords are a workaround. |
Description
I'm submitting this issue related to #35528 (closed)
Starting from the 1st January 2023, Microsoft permanently disabled basic auth for sending emails, and it seems app password will not help anymore. Microsoft's recomendations are :
Knowing that, may be it make more sense now to consider supporting oauth token - handling - renewing inside a dedicated mailer component ?
Example
No response
The text was updated successfully, but these errors were encountered: