Mailer.php
authorAlan Knowles <alan@roojs.com>
Wed, 5 Feb 2014 11:13:28 +0000 (19:13 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 5 Feb 2014 11:13:28 +0000 (19:13 +0800)
Mailer.php

index 6c72911..dd5cfe0 100644 (file)
@@ -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");