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:
parent
9ca3aa8613
commit
00f6fe6a10
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user