CodeIgniter Forums
Oauth SMTP authentication support? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Oauth SMTP authentication support? (/showthread.php?tid=90604)



Oauth SMTP authentication support? - CIDave - 04-09-2024

hi!
Google is removing the ability for Google Workspace users to use their SMTP service using just Username and Password. Instead, they will be requiring Oauth to sign in and authenticate using their SMTP servers.
We've been using Google's SMTP for sending emails on our site. But in September 2024, they'll be turning off the ability to use your username and password.
Is there any support for using Oauth with the current email config?
https://support.google.com/accounts/answer/6010255?hl=en


RE: Oauth SMTP authentication support? - JustJohnQ - 04-09-2024

Check:
https://github.com/datamweb/shield-oauth


RE: Oauth SMTP authentication support? - kenjis - 04-09-2024

See https://github.com/PHPMailer/PHPMailer/wiki/Gmail-XOAUTH2-Using-Google-API-Client


RE: Oauth SMTP authentication support? - LuxesR - 08-08-2024

Are there any plans to change the CodeIgniter mail function to support OAuth SMTP authentication in the future? Or are we forced to use PHPMailer for this?


RE: Oauth SMTP authentication support? - kenjis - 08-08-2024

There is no plan to support OAuth SMTP.

If someone has interested in Email, see https://github.com/codeigniter4/CodeIgniter4/issues/1615.
And implement OAuth SMTP authentication.

Alternatively, you could create a Composer package that uses PHPMailer as the backend and provides APIs that are compatible with the current CI4 Mail APIs.


RE: Oauth SMTP authentication support? - LuxesR - 08-08-2024

I understand. Thank you for your response.