I have created a custom form, after submit send email to recipient with JFactory::getMailer With this class can add body, for example:
$mailer = JFactory::getMailer();
$mailer->addRecipient('test-em[email protected]');
$mailer->setBody('Hello world simple text');
In my case, my template email have many div, styles css, etc, and is pretty ugly include entire html into setBody method. Is there an alternative?