page =>
contents
template
- replaceImages => true|false
+ replaceImages => true|false,
+ rcpts => array() // override recipients..
]
*
* recipents is gathered from the resulting template
var $contents = false; /* object or array */
var $template = false; /* string */
var $replaceImages = false; /* boolean */
-
+ var $rcpts = false;
var $images = array(); // generated list of cid images for sending
///$recipents = array($this->email);
$mailOptions = PEAR::getStaticProperty('Mail','options');
$mail = Mail::factory("SMTP",$mailOptions);
- $headers['Date'] = date('r');
+ $headers['Date'] = date('r');
if (PEAR::isError($mail)) {
return $mail;
}
+ $rcpts = $this->rcpts == false ? $email['recipents'] : $this->rcpts;
$oe = error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
- $ret = $mail->send($email['recipents'],$email['headers'],$email['body']);
+ $ret = $mail->send($rcpts,$email['headers'],$email['body']);
error_reporting($oe);
return $ret;