}
- function get($q, $opts)
+ function get($q, $opts=array())
{
// send a test email to me...
$this->rcpts = $opts['to'];
$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(),
'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?");
}