From 51876741676cb6a2f05b597bc2071ec29a90f483 Mon Sep 17 00:00:00 2001 From: tykayn Date: Thu, 16 Apr 2020 11:28:46 +0200 Subject: [PATCH] tpl --- src/Service/MailService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/MailService.php b/src/Service/MailService.php index 0ed20ce..4f5971e 100644 --- a/src/Service/MailService.php +++ b/src/Service/MailService.php @@ -69,7 +69,7 @@ class MailService { * * @param Owner $foundOwner * - * @return int + * @return int|void * @throws Exception */ public function sendOwnerPollsAction( Owner $foundOwner ) { @@ -97,7 +97,7 @@ class MailService { ->from( 'ne-pas-repondre@framadate-api.cipherbliss.com' ) ->to( new Address( $foundOwner->getEmail() ) ) ->subject( $titleEmail ) - ->htmlTemplate( $templateVars[ 'email_template' ] ) + ->htmlTemplate( 'emails/owner-list.html.twig') ->context( $templateVars ); // send email