// for the html body, we may want to convert the attachments to images.
// var_dump($htmlbody);exit;
- $htmlbody = $this->htmlbodytoCID($htmlbody);
+ if ($this->replaceImages) {
+ $htmlbody = $this->htmlbodytoCID($htmlbody);
+ }
}
$cache = ini_get('session.save_path')."/Pman_Core_Mailer-{$user}/" . md5($url);
if (file_exists($cache) and filemtime($cache) > strtotime('NOW - 1 WEEK')) {
- $ret = json_decode($cache);
+ $ret = json_decode(file_get_contents($cache), true);
$ret['file'] = $cache . '.data';
return $ret;
}