summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-15 10:59:11 +0200
committerJoas Schilling <coding@schilljs.com>2017-10-18 15:12:03 +0200
commit8b37fe7f6534ad16bd9a357036e95e748e2068e3 (patch)
treec7a11a26232a0e117d0b2b3c95a2d79b7985967b /settings/Controller
parentf109c1a10c9f5acf0d5d3e4f864e3702f99db937 (diff)
downloadnextcloud-server-8b37fe7f6534ad16bd9a357036e95e748e2068e3.tar.gz
nextcloud-server-8b37fe7f6534ad16bd9a357036e95e748e2068e3.zip
Set the subject with the email template to allow theming
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/MailSettingsController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/Controller/MailSettingsController.php b/settings/Controller/MailSettingsController.php
index 974a95618ad..cb622fa9b12 100644
--- a/settings/Controller/MailSettingsController.php
+++ b/settings/Controller/MailSettingsController.php
@@ -151,6 +151,7 @@ class MailSettingsController extends Controller {
'displayname' => $displayName,
]);
+ $template->setSubject($this->l10n->t('Email setting test'));
$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.'));
@@ -158,7 +159,7 @@ class MailSettingsController extends Controller {
$message = $this->mailer->createMessage();
$message->setTo([$email => $displayName]);
- $message->setSubject($this->l10n->t('Email setting test'));
+ $message->setSubject($template->renderSubject());
$message->setHtmlBody($template->renderHtml());
$message->setPlainBody($template->renderText());
$errors = $this->mailer->send($message);