function get($q, $opts) { // send a test email to me... $this->rcpts = $opts['to']; $this->subject = "test email"; for ($i = 0; $i < 10; $i++) { $this->test[$i] = $i; } require_once 'Pman/Core/Mailer.php'; $r = new Pman_Core_Mailer(array('template' => 'test', 'contents' => array(), 'page' => $this, 'attachments' => array(array('file' => '/home/alan/Documents/Nestplaytimespjadcover.pdf', 'name' => 'Nestplaytimespjadcover.pdf', 'mimetype' => 'application/pdf')))); $res = $r->send(); var_dump($res); die("done?"); }
function sendTemplate($templateFile, $args) { require_once 'Pman/Core/Mailer.php'; $r = new Pman_Core_Mailer(array('template' => $templateFile, 'contents' => array(), 'page' => $this)); return $r->send(); }