oAuth support to send emails via Microsoft 365 and Gmail #15791
Replies: 2 comments
-
I think I have just run into this issue myself. When I use Wordpress sites there are plugins available that allow the site to post directly into Gmail using Oauth2. If you find a solution to this, that would be great. It looks like the only workaround might be to use App Passwords when it comes to Gmail accounts, but this is less than ideal compared to Oauth2. I've looked for someone who has a 3rd party plug-in for Craft that might solve this issue, but I've yet to identify anything. |
Beta Was this translation helpful? Give feedback.
-
We’re still looking into this, but it looks like app passwords are unaffected by Gmail’s upcoming changes per this support article. Those are working in Craft 4 and 5 in our testing. |
Beta Was this translation helpful? Give feedback.
-
With Microsoft discontinuing support for SMTP auth in September 2025, many clients using 365 as a mail server are moving towards oAuth to authenticate external apps.
In many cases we had to provide an external SMTP service just to send emails from a Craft CMS site.
It's never nice to have to answer that Craft cannot connect to a mailbox on 365 via oAuth.
This can also be useful for Gmail accounts.
Can you consider adding a transport type that involves oAuth authentication for sending emails via 365 and Gmail?
Beta Was this translation helpful? Give feedback.
All reactions