summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-15 11:01:21 +0200
committerJoas Schilling <coding@schilljs.com>2017-10-18 15:12:03 +0200
commit3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9 (patch)
treef79efab1f9506a452e54fd32e201234410969b1b /core/Controller
parentc9af36a9ab05e808df526a2054c30364ee02241c (diff)
downloadnextcloud-server-3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9.tar.gz
nextcloud-server-3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9.zip
Set the data from the template
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LostController.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php
index f4400b0f20b..04a3a07bea2 100644
--- a/core/Controller/LostController.php
+++ b/core/Controller/LostController.php
@@ -328,10 +328,8 @@ class LostController extends Controller {
try {
$message = $this->mailer->createMessage();
$message->setTo([$email => $user->getUID()]);
- $message->setSubject($emailTemplate->renderSubject());
- $message->setPlainBody($emailTemplate->renderText());
- $message->setHtmlBody($emailTemplate->renderHtml());
$message->setFrom([$this->from => $this->defaults->getName()]);
+ $message->useTemplate($emailTemplate);
$this->mailer->send($message);
} catch (\Exception $e) {
throw new \Exception($this->l10n->t(