*
* $x= Pman_Core_Mailer(array(
page =>
- contents
+ contents << keys must be trusted
+ bcc ->
template
html_locale => 'en' == always use the 'english translated verison'
cache_images => true -- defaults to caching images - set to false to disable.
var $mail_method = 'SMTP';
var $cache_images = true;
- var $no_replace_images = array();
-
+
var $bcc = false;
function Pman_Core_Mailer($args) {
}
$rcpts = $this->rcpts == false ? $email['recipents'] : $this->rcpts;
+
+
+ // this makes contents untrustable...
if (!empty($this->contents['bcc']) && is_array($this->contents['bcc'])) {
$rcpts =array_merge(is_array($rcpts) ? $rcpts : array($rcpts), $this->contents['bcc']);
}
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 is_ignore_image($url)
- {
- foreach($this->ignore_images as $o) {
- if (strpos($url,$o) === 0) {
- return true;
- }
- }
- return false;
-
-
- }
+
function log($val)