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