$htmltemplate->compile('mail/'. $templateFile.'.body.html');
$htmlbody = $htmltemplate->bufferedOutputObject($content);
+ $this->htmlbody = $htmlbody;
+
// for the html body, we may want to convert the attachments to images.
// var_dump($htmlbody);exit;
if ($this->replaceImages) {
$pg = HTML_FlexyFramework::get()->page;
- print_R($email);
- print_R('run');exit;
+
$email = is_array($email) ? $email : $this->toData();
if (is_a($email, 'PEAR_Error')) {
$pg->addEvent("COREMAILER-FAIL", false, "email toData failed");