From 6a0c54d5bfd70baeed2438ac05278a9b4cb73d88 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 19 Jun 2018 16:39:51 +0200 Subject: Add warning to setup checks if the default mailer is still php Signed-off-by: Roeland Jago Douma --- settings/Controller/CheckSetupController.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'settings') 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') ] ); } -- cgit v1.2.3