I'm using Magento's
core/email_template model to send an email (as opposed to
core/email as I want to add an attachment).
I already have a
$html variable which I would like to set as the body. Is there any way I can do so, i.e not have to specify a transaction email ID? Here is the code below:
$mailTemplate->setDesignConfig(array('area'=>'frontend', 'store'=>1)) ->sendTransactional( $template_id, $sender, $to_email, $to_name );