SimpleExcel.php
[Pman.Core] / Tests / Mailer.php
index 7ad19f3..f1fa65e 100644 (file)
@@ -26,7 +26,7 @@ class Pman_Core_Tests_Mailer extends Pman
         
     }
     
-    function get($q, $opts)
+    function get($q,  $opts=array())
     {
         // send a test email to me...
         $this->rcpts = $opts['to'];
@@ -36,7 +36,7 @@ class Pman_Core_Tests_Mailer extends Pman
             $this->test[$i] = $i;
             
         }
-          require_once 'Pman/Core/Mailer.php';
+        require_once 'Pman/Core/Mailer.php';
         $r = new Pman_Core_Mailer(array(
             'template'=> 'test',
             'contents' => array(),
@@ -44,16 +44,16 @@ class Pman_Core_Tests_Mailer extends Pman
             'attachments' => array(
                 array(
                
-                    'file' => '/home/alan/Documents/Nestplaytimespjadcover.pdf',
+                    'file' => '/home/alan/Documents/Nestplaytimespjadcover.pdf', // pass the file path DO NOT pass the file content
                     'name' => 'Nestplaytimespjadcover.pdf',
                     'mimetype' => 'application/pdf'
                     
                 )
             )
         ));
-        return $r->send();
+        $res = $r->send();
+        var_dump($res);
         
-        $this->sendTemplate('test',array());
         die("done?");
         
     }