summaryrefslogtreecommitdiffstats
path: root/lib/private/Settings
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-06-07 20:36:17 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-07-04 08:28:33 +0200
commit0dd4a3e0cfb5ef34ef0cbba0a6b7ac82f469b8be (patch)
treeb2c4cbcf789e2693886ac0f9be103f2545dd2c8e /lib/private/Settings
parent65bcef8fb3afc71ed85de6cd9d5480a1846568ee (diff)
downloadnextcloud-server-0dd4a3e0cfb5ef34ef0cbba0a6b7ac82f469b8be.tar.gz
nextcloud-server-0dd4a3e0cfb5ef34ef0cbba0a6b7ac82f469b8be.zip
Kill php mail from settings
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Settings')
-rw-r--r--lib/private/Settings/Admin/Mail.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Settings/Admin/Mail.php b/lib/private/Settings/Admin/Mail.php
index 74a94a4c7a0..fc20b7eeb3f 100644
--- a/lib/private/Settings/Admin/Mail.php
+++ b/lib/private/Settings/Admin/Mail.php
@@ -63,6 +63,10 @@ class Mail implements ISettings {
$parameters['mail_smtppassword'] = '********';
}
+ if ($parameters['mail_smtpmode'] === '' || $parameters['mail_smtpmode'] === 'php') {
+ $parameters['mail_smtpmode'] = 'smtp';
+ }
+
return new TemplateResponse('settings', 'settings/admin/additional-mail', $parameters, '');
}