Repository navigation
[5.x] Warn super users that Microsoft 365 is ending SMTP password logins - #25891
Merged
Merged
Conversation
Backport of #25723. Typed properties, named arguments and the never and mixed types are rewritten for PHP 7.2.
Backport of #25724. Leaves out the 6.x-only mailSettingsUpdated event, adds the General_InvalidValueForParameter text 5.x lacked, and moves the specs to jest.
Backport of #25819. Leaves out the 6.x-only mailSettingsUpdated event and moves the specs to jest.
…shot Http::sendHttpRequestBy no longer declares @throws, so the CliMulti entry no longer matches. The screenshot shows the new [mail] oauth settings.
…041-smtp-oauth-settings-ui-5x
…-login-retirement-warning-5x
cancel() only unsets the session key when it is set, and the tests keep global state so php-di's deprecations stay hidden on PHP 8.5+.
…-login-retirement-warning-5x # Conflicts: # plugins/CoreAdminHome/vue/dist/CoreAdminHome.umd.js # plugins/CoreAdminHome/vue/dist/CoreAdminHome.umd.min.js
10 tasks
tzi
previously approved these changes
Dec 1, 2026
tzi
marked this pull request as ready for review
December 1, 2026 19:31
chippison
force-pushed
the
dev-21041-smtp-oauth-settings-ui-5x
branch
from
December 1, 2026 20:33
4761881 to
ff55e15
Compare
Base automatically changed from
dev-21041-smtp-oauth-settings-ui-5x
to
5.x-dev
December 1, 2026 21:41
chippison
enabled auto-merge (squash)
December 1, 2026 22:11
tzi
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport of #25819 to 5.x-dev, for 5.14.4. Stacked on #25890 and has to be merged after it.
Changes from the original: leaves out the 6.x-only
CoreAdminHome.mailSettingsUpdatedevent, usesstrposinstead ofstr_starts_within ManagerTest, and moves the Vue specs to jest.cancel()only unsets the session key when it is set, because PHP 7 raises an "Undefined variable: _SESSION" notice otherwise. The separate-process tests drop@preserveGlobalState disabled, because on PHP 8.5+ php-di 6 prints deprecations in the child process and PHPUnit fails the test.vue/distis rebuilt by the 5.x build action.DEV-21141
Microsoft 365 turns off password logins for SMTP by default from the end of December 2026. This PR warns super users who send Matomo's emails through SMTP with a password, so they can switch to OAuth 2.0 before scheduled reports and alerts stop being sent.
It builds on #25890, which adds the OAuth 2.0 fields to the email settings form.
Changes
[mail]uses SMTP with a login method other than OAuth 2.0. It links to the email settings and to Microsoft's announcement.SmtpBasicAuthRetirementNotification) and is posted from theController.triggerAdminNotificationsevent, so core'sControllerAdminis not changed.enable_general_settings_admin = 0ormulti_server_environment = 1), the warning has a different body that tells the user to switch to OAuth 2.0 in the[mail]section ofconfig/config.ini.php, with no link to the settings page.[mail]settings, to the anonymous user, or on requests authenticated with atoken_auth.[General] disabled_notifications[] = SmtpBasicAuthRetirementMicrosoft, for instances that don't send through Microsoft 365.ManagerTest::testListenNotToControllerMethodEventsThatDoesNotExistsnow only checksController.$module.$actionhooks. It assumed everyController.*hook has that shape, and CoreAdminHome is the first plugin in this repository to listen toController.triggerAdminNotifications.Follow-up
Testing
Checklist
[✔] I have understood, reviewed, and tested all AI outputs before use
[✔] All AI instructions respect security, IP, and privacy rules