collectiveaccess / providence

Cataloguing and data/media management application
GNU General Public License v3.0
290 stars 166 forks source link

XOAUTH2 SMTP authentication method #1580

Open Monica-Wood opened 1 month ago

Monica-Wood commented 1 month ago

We require the implementation of authenticating to SMTP via OAUTH2 (in particular using Microsoft Azure as the provider). This is available in the phpmailer composer package but requires installing one of their suggested packages to enable the OAUTH provider (There one available for each of Azure, Microsoft, Google and Yahoo).

I will be submitting a pull request in the next few days (into dev/php8) with a suggested implementation of this with Azure included, but if this works, it shouldn't take too much to add extra blocks for the other providers as needed.

Monica-Wood commented 1 month ago

Submitted the pull request. Would be great if anyone else out there could test if they have Azure oauth2 available.

Incase helpful. Documentation I used as reference: https://github.com/PHPMailer/PHPMailer/wiki/Microsoft-Azure-and-XOAUTH2-setup-guide