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)) {
}
$tmp_opts['nonHTML'] = true;
+ $diff = microtime(true) - $ts;
+ print_r($diff);exit;
//print_R($tmp_opts);
// $tmp_opts['force'] = true;
$pg = $ff->page;
- $ts = microtime(true);
-
$email = is_array($email) ? $email : $this->toData();
- $diff = microtime(true) - $ts;
-
- print_r($diff);exit;
-
if (is_a($email, 'PEAR_Error')) {
$pg->addEvent("COREMAILER-FAIL", false, "email toData failed");