dynamic mail title

This commit is contained in:
Baptiste Lemoine 2020-04-16 18:16:55 +02:00
parent f40eb596b4
commit cd74469ced
1 changed files with 3 additions and 3 deletions

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' );