function toData()
{
- $ts = microtime(true);
-
$templateFile = $this->template;
$args = (array)$this->contents;
$content = clone($this->page);
$htmlbody = false;
$html_tmp_opts = $tmp_opts;
$htmltemplate = new HTML_Template_Flexy( $html_tmp_opts );
-
if (is_string($htmltemplate->resolvePath('mail/'.$templateFile.'.body.html')) ) {
// then we have a multi-part email...
if (!empty($this->html_locale)) {
$htmlbody = $htmltemplate->bufferedOutputObject($content);
$this->htmlbody = $htmlbody;
- $diff = microtime(true) - $ts;
-
- print_r($diff);exit;
+
// for the html body, we may want to convert the attachments to images.
// var_dump($htmlbody);exit;