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(
|
||||
$this->renderView(
|
||||
'emails/owner-list.html.twig',
|
||||
$templateVars
|
||||
$templateVars,
|
||||
'text/html'
|
||||
)
|
||||
);
|
||||
// send email
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user