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;
@$dom->loadHTML('<?xml encoding="UTF-8">' .$html);
$imgs= $dom->getElementsByTagName('img');
+ $test = array();
+
+ foreach ($imgs as $i=>$img) {
+ $url = $img->getAttribute('src');
+ if (preg_match('#^cid:#', $url)) {
+ continue;
+ }
+ $me = $img->getAttribute('mailembed');
+ if ($me == 'no') {
+ continue;
+ }
+ $test[] = $url;
+ }
+
+ print_R($test);exit;
+
foreach ($imgs as $i=>$img) {
$url = $img->getAttribute('src');
if (preg_match('#^cid:#', $url)) {