CodeExplorer htmlTemplate example
$renderer =
new BodyRenderer($twig,
[],
$converter);
$email =
(new TemplatedEmail()) ->
to('fabien@symfony.com'
) ->
from('helene@symfony.com'
) ->
context($context) ;
if (null !==
$text) { $email->
textTemplate('text'
);
} if (null !==
$html) { $email->
htmlTemplate('html'
);
} $renderer->
render($email);
return $email;
}}