diff options
Diffstat (limited to 'settings/Controller/MailSettingsController.php')
-rw-r--r-- | settings/Controller/MailSettingsController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/Controller/MailSettingsController.php b/settings/Controller/MailSettingsController.php index de10c077ede..44cece1d658 100644 --- a/settings/Controller/MailSettingsController.php +++ b/settings/Controller/MailSettingsController.php @@ -148,6 +148,11 @@ class MailSettingsController extends Controller { $displayName = $this->userSession->getUser()->getDisplayName(); $template = $this->mailer->createEMailTemplate(); + + $template->setMetaData('settings.TestEmail', [ + 'displayname' => $displayName, + ]); + $template->addHeader(); $template->addHeading($this->l10n->t('Well done, %s!', [$displayName])); $template->addBodyText($this->l10n->t('If you received this email, the email configuration seems to be correct.')); |