projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10dee0c
)
Mailer.php
author
Alan Knowles
<alan@roojs.com>
Wed, 5 Feb 2014 11:13:28 +0000
(19:13 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 5 Feb 2014 11:13:28 +0000
(19:13 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
6c72911
..
dd5cfe0
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-257,13
+257,13
@@
class Pman_Core_Mailer {
'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");