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

dynamic mail title

This commit is contained in:
Baptiste Lemoine 2020-04-16 18:16:55 +02:00
parent f40eb596b4
commit cd74469ced

View File

@ -49,11 +49,11 @@ class FramadateController extends AbstractController {
$config[ 'email_template' ],
$config
);
$message = ( new Swift_Message( 'Wonderful Subject from FAT computer' ) )
$message = ( new Swift_Message( $config[ 'title' ] ) )
->setContentType( "text/html" )
->setCharset( 'UTF-8' )
->setFrom( [ 'contact@framadate-api.cipherbliss.com' ] )
->setTo( [ 'contact@cipherbliss.com' ] )
->setFrom( [ 'ne-pas-repondre@framadate-api.cipherbliss.com' ] )
->setTo( [ $config[ 'owner' ]->getEmail() ] )
->setBody( $htmlbody, 'text/html' );