content type mail

This commit is contained in:
tykayn 2020-04-13 17:35:57 +02:00
parent 9ca3aa8613
commit 00f6fe6a10
2 changed files with 6 additions and 2 deletions

View File

@ -49,7 +49,8 @@ class DefaultController extends AbstractController {
->setBody( ->setBody(
$this->renderView( $this->renderView(
'emails/owner-list.html.twig', 'emails/owner-list.html.twig',
$templateVars $templateVars,
'text/html'
) )
); );
// send email // send email

View File

@ -44,12 +44,15 @@ class MailService {
$message = ( new Swift_Message( 'Framadate - mes sondages' ) ) $message = ( new Swift_Message( 'Framadate - mes sondages' ) )
->setFrom( 'ne-pas-repondre@framadate-api.cipherbliss.com' ) ->setFrom( 'ne-pas-repondre@framadate-api.cipherbliss.com' )
->setContentType('text/html')
->setCharset('UTF-8')
->setTo( $admin_user->getEmail() ) ->setTo( $admin_user->getEmail() )
->setBody( ->setBody(
$this->renderView( $this->renderView(
$templateVars[ 'email_template' ], $templateVars[ 'email_template' ],
$templateVars $templateVars
) ),
'text/html'
); );
// send email // send email