$map[$i->id] = $new_image->id;
}
-
+ print_r('test??');exit;
libxml_use_internal_errors (true);
$doc = new DOMDocument('1.0', 'UTF-8');
$doc->loadHTML('<?xml encoding="UTF-8"><HTML><BODY>'.$this->bodytext.'</BODY></HTML>');
$cfg = array_merge($contents['mailer_opts'], $cfg);
}
+ if(isset($contents['css_inline'])){
+ $cfg['css_inline'] = $contents['css_inline'];
+ }
+
$r = new Pman_Core_Mailer($cfg);
$imageCache = session_save_path() . '/email-cache-' . $ui['name'] . '/mail/' . $this->tableName() . '-' . $this->id . '-images.txt';
if (!file_exists(dirname($cachePath))) {
mkdir(dirname($cachePath), 0700, true);
}
-
+ print_R($this->bodytext);exit;
file_put_contents($cachePath, $this->bodytext);
}