From 3890fa014dbd62424d853aa71c3bc432dfcd4877 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Wed, 20 Jan 2021 16:49:50 +0100 Subject: [PATCH] Optionally configure SMTP host in dokuwiki Actually sending mails still requires the SMTP plugin. --- dokuwiki/templates/local.protected.php.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dokuwiki/templates/local.protected.php.j2 b/dokuwiki/templates/local.protected.php.j2 index 8f7b0bf..c86bce0 100644 --- a/dokuwiki/templates/local.protected.php.j2 +++ b/dokuwiki/templates/local.protected.php.j2 @@ -26,3 +26,7 @@ $conf['xsendfile'] = 0; $conf['updatecheck'] = 0; $conf['useacl'] = 1; $conf['phpok'] = 0; +{% if item.mail_host is defined %} +$conf['plugin']['smtp']['smtp_host'] = '{{item.mail_host}}'; +$conf['plugin']['smtp']['smtp_ssl'] = 'tls'; +{% endif %} -- GitLab