var $mail_method = 'SMTP';
var $cache_images = true;
+
+ var $bcc = false;
function Pman_Core_Mailer($args) {
foreach($args as $k=>$v) {
if (!empty($ff->Core_Mailer['debug'])) {
$this->debug = $ff->Core_Mailer['debug'];
}
- $this->log("URL MAP");
- $this->log($this->urlmap);
+ //$this->log("URL MAP");
+ //$this->log($this->urlmap);
}
'body' => $parts[2],
'mailer' => $this
);
- if (isset($))
- return $ret;;
+ // add bcc if necessary..
+ if (!empty($this->bcc)) {
+ $ret['bcc'] = $this->bcc;
+ }
+ return $ret;
}
function send($email = false)
{
$file = $ff->rootDir . $url;
if (!file_exists($file)) {
- echo $file;
+// echo $file;
$link->setAttribute('href', 'missing:' . $file);
continue;
}
return array(
'mimetype' => $mt,
'ext' => $ext,
- 'contentid' => md5($file),
+ 'contentid' => md5($file), // mailer makes md5 cid's' -- cid with attachment-** are done by mailer.
'file' => $file
);
}
+
+
function log($val)
{
return;
}
if ($this->debug < 2) {
- echo '<PRE>' . $val. "\n";
+ echo '<PRE>' . print_r($val,true). "\n";
return;
}
$fh = fopen('/tmp/core_mailer.log', 'a');