3 require_once 'Pman.php';
5 class Pman_Core_Tests_Mailer extends Pman
7 static $cli_desc = "Send out Test emails using Mailer API";
9 static $cli_opts = array(
11 'desc' => 'TO: email address',
23 if (!$this->bootLoader->cli) {
29 function get($q, $opts)
31 // send a test email to me...
32 $this->rcpts = $opts['to'];
33 $this->subject = "test email";
35 for($i = 0; $i < 10; $i++) {
39 require_once 'Pman/Core/Mailer.php';
40 $r = new Pman_Core_Mailer(array(
42 'contents' => array(),
44 'attachments' => array(
47 'file' => '/home/alan/Documents/Nestplaytimespjadcover.pdf', // pass the file path DOES NOT pass the file content
48 'name' => 'Nestplaytimespjadcover.pdf',
49 'mimetype' => 'application/pdf'