X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=MessagePreview.php;h=e12a031292a12e021c3b46a05bfe97032939c8d8;hp=3a40e540ec0b040d486ac35d66618ad1c01a468f;hb=586e4eb470252d837ba18b67e4c3c1702131fd1d;hpb=4479114691b2d905574b805b9766960a0abe71fd diff --git a/MessagePreview.php b/MessagePreview.php index 3a40e540..e12a0312 100644 --- a/MessagePreview.php +++ b/MessagePreview.php @@ -20,6 +20,7 @@ class Pman_Core_MessagePreview extends Pman function get($v, $opts=array()) { + if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){ $this->jerr('Missing Options'); } @@ -99,8 +100,6 @@ class Pman_Core_MessagePreview extends Pman $this->jerr("[{$core_email->name}] does not has test class"); } - print_r($core_email);exit; - require_once "{$core_email->test_class}.php"; $cls = str_replace('/', '_', $core_email->test_class); @@ -115,6 +114,8 @@ class Pman_Core_MessagePreview extends Pman $content = $x->{$method}($this, $this->authUser); + $content['bcc'] = array(); + $sent = $core_email->send($content); if(is_object($sent)){