}
$htmlbody = false;
- $htmltemplate = new HTML_Template_Flexy( $tmp_opts );
+
if (is_string($htmltemplate->resolvePath('mail/'.$templateFile.'.body.html')) ) {
// then we have a multi-part email...
if (!empty($this->html_locale)) {
$html_tmp_opts['locale'] = $this->html_locale;
}
+ $htmltemplate = new HTML_Template_Flexy( $html_tmp_opts );
$htmltemplate->compile('mail/'. $templateFile.'.body.html');
$htmlbody = $htmltemplate->bufferedOutputObject($content);