diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-08-30 22:56:14 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-30 22:56:14 +0200 |
commit | 404bd1be60c1dafd83b8a1bfe3de7addc5878b1c (patch) | |
tree | 8492a9f88e92053f45aec21b66f32a335c93f110 /settings/Controller | |
parent | ee14659ae8f62da48420f3dd2cb8ed167bfca5dd (diff) | |
download | nextcloud-server-404bd1be60c1dafd83b8a1bfe3de7addc5878b1c.tar.gz nextcloud-server-404bd1be60c1dafd83b8a1bfe3de7addc5878b1c.zip |
Implement metadata for email templates of remaining emails
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings/Controller')
-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.')); |