Mailer.php
authorChris <chris@roojs.com>
Thu, 23 May 2013 03:14:33 +0000 (11:14 +0800)
committerChris <chris@roojs.com>
Thu, 23 May 2013 03:14:33 +0000 (11:14 +0800)
Mailer.php

index ef21217..f3a6503 100644 (file)
@@ -40,7 +40,7 @@
  */
 
 class Pman_Core_Mailer {
-    
+    var $debug          = false;
     var $page           = false; /* usually a html_flexyframework_page */
     var $contents       = false; /* object or array */
     var $template       = false; /* string */
@@ -184,6 +184,9 @@ class Pman_Core_Mailer {
         if (is_a($email, 'PEAR_Error')) {
             return $email;
         }
+        if ($this->debug) {
+            echo '<PRE>';echo htmlspecialchars(print_r($data,true));
+        }
         ///$recipents = array($this->email);
         $mailOptions = PEAR::getStaticProperty('Mail','options');
         //print_R($mailOptions);exit;