Add text template

[MAILPOET-1571]
This commit is contained in:
Pavel Dohnal
2019-01-28 14:16:43 +01:00
parent 3eb640597b
commit d7db761f73
3 changed files with 58 additions and 15 deletions

View File

@@ -84,6 +84,7 @@ class Worker {
'subject' => sprintf(_x('Stats for email %s', 'title of an automatic email containing statistics (newsletter open rate, click rate, etc)', 'mailpoet'), $newsletter->subject),
'body' => [
'html' => $this->renderer->render('emails/statsNotification.html', $context),
'text' => $this->renderer->render('emails/statsNotification.txt', $context),
],
];
}