Feature Language Change Conflicting Files NPM Resource Changed PR-6.2-dev Pending

User tests: Successful: Unsuccessful:

avatar dawe78
dawe78
22 Apr 2026

Summary

This PR adds SMTP OAuth2 support to Joomla Global Configuration for outgoing mail, including:

  • New mailer option: smtpoauth2
  • OAuth2 token issue/check flow in Global Configuration
  • Provider selection:
    • Microsoft
    • Google
    • Custom endpoints
  • Microsoft tenant mode:
    • common endpoint
    • specific tenant ID endpoint
  • SMTP XOAUTH2 token provider integration in mail factory

Why

SMTP OAuth2 is now required/strongly recommended by common providers.
This adds a core-level configuration path to use OAuth2 for SMTP without custom patches.

Main changes

  • administrator/components/com_config/forms/application.xml
    • OAuth2 fields for provider/client/scope/token workflow
    • mailer option smtpoauth2
    • mailer filter fixed to allow values ending with digits
  • administrator/components/com_config/src/Controller/RequestController.php
    • OAuth2 auth/callback/token-check flow
    • provider resolution and endpoint generation
  • administrator/components/com_config/src/Model/ApplicationModel.php
    • config persistence and test mail updates for OAuth2
  • administrator/components/com_config/src/Field/Oauth2TokenField.php
    • token UI actions in Global Config
  • administrator/components/com_config/src/Helper/ConfigHelper.php
    • callback URL helper
  • libraries/src/Mail/MailerFactory.php
    • smtpoauth2 transport wiring and XOAUTH2 setup
  • libraries/src/Mail/SmtpOAuth2TokenProvider.php
    • refresh-token based access token retrieval
  • administrator/language/en-GB/com_config.ini
    • new labels/messages

Notes

  • Microsoft single-tenant apps are supported through tenant-specific endpoint generation.

Testing performed

  • Config save with smtpoauth2
  • OAuth2 token issuance and storage
  • Token validity check
  • SMTP test mail with Microsoft tenant-specific endpoint
avatar dawe78 dawe78 - open - 22 Apr 2026
avatar dawe78 dawe78 - change - 22 Apr 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Apr 2026
Category Repository Administration com_config com_messages Language & Strings JavaScript NPM Change Installation
avatar dawe78 dawe78 - change - 22 Apr 2026
The description was changed
avatar dawe78 dawe78 - edited - 22 Apr 2026
avatar github-actions[bot]
github-actions[bot] - comment - 22 Apr 2026

This pull request has conflicts, please resolve those before we can evaluate the pull request.

avatar dawe78 dawe78 - change - 23 Apr 2026
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2026-04-23 09:31:51
Closed_By dawe78
Labels Added: Feature Language Change Conflicting Files NPM Resource Changed PR-6.2-dev
avatar dawe78 dawe78 - close - 23 Apr 2026
avatar dawe78
dawe78 - comment - 23 Apr 2026

New PR #47669

Add a Comment

Login with GitHub to post a comment