}
$oe = error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
+ if ($this->debug) {
+ print_r(array(
+ 'rcpts' => $rcpts,
+ 'email' => $email
+ ));
+ }
$ret = $mail->send($rcpts,$email['headers'],$email['body']);
error_reporting($oe);
if ($ret === true) {
} else {
$conv = $urls[$url];
}
-
+ $img->setAttribute('origsrc', $url);
$img->setAttribute('src', 'cid:' . $conv['contentid']);
}
+
return $dom->saveHTML();
}
function mapurl($in)
{
-
- foreach($this->urlmap as $o=>$n) {
+ foreach($this->urlmap as $o=>$n) {
if (strpos($in,$o) === 0) {
$ret =$n . substr($in,strlen($o));
$this->log("mapURL in $in = $ret");