page =>
contents
template
+ html_locale => 'en' == always use the 'english translated verison'
replaceImages => true|false,
locale => 'en' .... or zh_hk....
rcpts => array() // override recipients..
'body' => $parts[2]
);
}
- function send()
+ function send($email = false)
{
$pg = HTML_FlexyFramework::get()->page;
- $email = $this->toData();
+ $email = is_array($email) ? $email : $this->toData();
if (is_a($email, 'PEAR_Error')) {
$pg->addEvent("COREMAILER-FAIL", false, "email toData failed");
if ($ret === true) {
$pg->addEvent("COREMAILER-SENT", false,
'To: ' . ( is_array($rcpts) ? implode(', ', $rcpts) : $rcpts ) .
- 'Subject: ' . @,$email['headers']['Subject']
+ 'Subject: ' . @$email['headers']['Subject']
);
}