DataObjects/I18n.php
[Pman.Core] / Mailer.php
index e3c5fa7..8ded27f 100644 (file)
@@ -16,7 +16,7 @@
  *
  *  $x= new Pman_Core_Mailer($opts)
  *
- *  $opts[
+ *  $x= Pman_Core_Mailer(array(
        page => 
        contents
        template
@@ -32,7 +32,7 @@
         ), 
         ......
   
-    ]
+    )
  *
  *  recipents is gathered from the resulting template
  *   -- eg.
@@ -42,7 +42,7 @@
  *  if the file     '
  * 
  * 
- *  $x->asData(); // returns data needed for notify?? - notify should really
+ *  $x->toData(); // returns data needed for notify?? - notify should really
  *                  // just use this to pass around later..
  *
  *  $x->send();
@@ -266,7 +266,6 @@ class Pman_Core_Mailer {
         
         
         $email = is_array($email)  ? $email : $this->toData();
-        print_r($email);exit;
         if (is_a($email, 'PEAR_Error')) {
             $pg->addEvent("COREMAILER-FAIL",  false, "email toData failed"); 
       
@@ -282,7 +281,7 @@ class Pman_Core_Mailer {
         $mail = Mail::factory("SMTP",$mailOptions);
         $email['headers']['Date'] = date('r'); 
         if (PEAR::isError($mail)) {
-             $pg->addEvent("COREMAILER-FAIL",  false, "mail factory failed"); 
+            $pg->addEvent("COREMAILER-FAIL",  false, "mail factory failed"); 
       
             
             return $mail;