diff options
author | Thomas Lehmann <t.lehmann@strato.de> | 2024-11-14 12:15:02 +0100 |
---|---|---|
committer | Thomas Lehmann <147605810+thlehmann-ionos@users.noreply.github.com> | 2024-11-19 11:32:39 +0100 |
commit | 3f6c969d83faa23379d79ac678c75c22926a5fe1 (patch) | |
tree | 7902af497a4c6ba792da9a5511220ccd338b953e | |
parent | e4c013d86d0802865aa2bac8fdda354cd2642788 (diff) | |
download | nextcloud-server-3f6c969d83faa23379d79ac678c75c22926a5fe1.tar.gz nextcloud-server-3f6c969d83faa23379d79ac678c75c22926a5fe1.zip |
feat(Mailer): hide admin settings for "null" transportartonge/local/IONOS/tl/dev/disable-mailing
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 <t.lehmann@strato.de>
-rw-r--r-- | apps/settings/templates/settings/admin/additional-mail.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/settings/templates/settings/admin/additional-mail.php b/apps/settings/templates/settings/admin/additional-mail.php index ecc2973f085..6d6c036e813 100644 --- a/apps/settings/templates/settings/admin/additional-mail.php +++ b/apps/settings/templates/settings/admin/additional-mail.php @@ -34,6 +34,13 @@ $mail_sendmailmode = [ ?> <div class="section" id="mail_general_settings"> +<?php if ($_['mail_smtpmode'] === 'null') { ?> + <h2><?php p($l->t('Email server'));?></h2> + + <p> + <?php p($l->t('Mail delivery is disabled by instance config "%s".', ['mail_smtpmode'])); ?> + </p> +<?php } else { ?> <form id="mail_general_settings_form" class="mail_settings"> <h2><?php p($l->t('Email server'));?></h2> <a target="_blank" @@ -143,4 +150,5 @@ $mail_sendmailmode = [ <em><?php p($l->t('Test and verify email settings')); ?></em> <input type="submit" name="sendtestemail" id="sendtestemail" value="<?php p($l->t('Send email')); ?>"/> <span id="sendtestmail_msg" class="msg"></span> +<?php } ?> </div> |