From 1de00e39d1bae2e1d0892acef904fd81ca3b105a Mon Sep 17 00:00:00 2001 From: Thomas Lehmann Date: Thu, 14 Nov 2024 12:15:02 +0100 Subject: [PATCH] feat(Mailer): hide admin settings for "null" transport When the mail transport is configured as null transport, the configuration UI would not work. == Background The null transport is meant for situations where operators implement mail delivery via custom mechanisms like REST APIs. Signed-off-by: Thomas Lehmann --- .../settings/templates/settings/admin/additional-mail.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/settings/templates/settings/admin/additional-mail.php b/apps/settings/templates/settings/admin/additional-mail.php index ecc2973f085f6..a97619edc1162 100644 --- a/apps/settings/templates/settings/admin/additional-mail.php +++ b/apps/settings/templates/settings/admin/additional-mail.php @@ -34,6 +34,13 @@ ?>
+ +

t('Email server'));?>

+ +

+ t('Mail delivery is disabled by instance config "%s".', ["mail_smtpmode"])); ?> +

+

t('Email server'));?>

t('Test and verify email settings')); ?> +