Not sure what's the syntax of having html files rendered when added to Zend\Mail\Message?
Here's a piece of code I have:
$mail = new Mail\Message();
$html = file_get_contents('content.html');
$mail->setBody($html);
Is it sufficient to set it up like this or do I need to specify the type of content somehow?
Thanks.
You can attach it as a Mime part.
Example from the docs: