Using Google GMail with OAuth2 to send emails

Hi!
I’ve been using OctoberCMS with our on-premise email server for some time now and we’re switching to Google GMail. Our website was configured to send emails with SMTP to our current server and everything was fine but Google is deprecating “less secure apps” which is basically a dedicated SMTP user/password for an application in favor of OAuth2 authentication.
How can we configure October to use OAuth2 instead of SMTP username/password to send email?
Thanks!

What you mean? Enable 2-Step Verification in security settings. Then, create app password. Works good for me.

Hi @sergeitoroptsev,

I’m using Google Workspace, not a personal GMail account, and Google is phasing out the App Password in favor OAuth2 and Google API for accessing emails from web applications. Same thing that Microsoft O365 users went through 2 years ago when Microsoft removed app-based password for SMTP access and required OAuth authentication instead.

I think Symphony now has a mail driver available for Microsoft Azure OAuth-based access, but not for Google. I saw some 3rd party Laravel packages around as well but I’m not sure it’s the right way to go.

Any light on this subject would be appreciated.

Thanks!

I use workspace too. It changes nothing. My option works fine.