1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00

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(
$this->renderView(
'emails/owner-list.html.twig',
$templateVars
$templateVars,
'text/html'
)
);
// send email

View File

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