I need to send e-mails but I already have the HTML generated, I don\'t want to use laravel blade because I need to apply a CSS Inliner to the HTML, so this is how i generate
The body is not accessible from the closure.
You can create the swift message by hand:
$message = \Swift_Message::newInstance();
$message->setFrom($messageToParse->template['fromEmail']);
$message->setTo($messageToParse->to['email']);
$message->setBody($messageToParse->body);
$message->addPart($messageToParse->body, 'html contents');
$message->setSubject('subject');
But then you to need to create the transport:
$mailer = self::setMailer( [your transport] );
$response = $mailer->send($message);