diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-19 16:39:51 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-07-04 08:28:33 +0200 |
commit | 6a0c54d5bfd70baeed2438ac05278a9b4cb73d88 (patch) | |
tree | cd061e0570ff628076c7841e11e2e91f70576ad1 /settings | |
parent | 0cf0bcba616811248e051a469360055845daed18 (diff) | |
download | nextcloud-server-6a0c54d5bfd70baeed2438ac05278a9b4cb73d88.tar.gz nextcloud-server-6a0c54d5bfd70baeed2438ac05278a9b4cb73d88.zip |
Add warning to setup checks if the default mailer is still php
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/CheckSetupController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index ecbb9839c75..a301ecb1f66 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -523,6 +523,10 @@ Raw output return []; } + protected function isPhpMailerUsed(): bool { + return $this->config->getSystemValue('mail_smtpmode', 'php') === 'php'; + } + /** * @return DataResponse */ @@ -557,6 +561,8 @@ Raw output 'missingIndexes' => $this->hasMissingIndexes(), 'isSqliteUsed' => $this->isSqliteUsed(), 'databaseConversionDocumentation' => $this->urlGenerator->linkToDocs('admin-db-conversion'), + 'isPhpMailerUsed' => $this->isPhpMailerUsed(), + 'mailSettingsDocumentation' => $this->urlGenerator->getAbsoluteURL('index.php/settings/admin') ] ); } |