projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pman.Gnumeric.js
[Pman.Core]
/
MessagePreview.php
diff --git
a/MessagePreview.php
b/MessagePreview.php
index
9ee72c2
..
f59cde1
100644
(file)
--- a/
MessagePreview.php
+++ b/
MessagePreview.php
@@
-18,7
+18,7
@@
class Pman_Core_MessagePreview extends Pman
return true;
}
return true;
}
- function get()
+ function get(
$v, $opts=array()
)
{
if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
$this->jerr('Missing Options');
{
if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
$this->jerr('Missing Options');
@@
-34,7
+34,7
@@
class Pman_Core_MessagePreview extends Pman
}
}
- function post()
+ function post(
$v
)
{
if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
$this->jerr('Missing Options');
{
if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
$this->jerr('Missing Options');
@@
-57,10
+57,13
@@
class Pman_Core_MessagePreview extends Pman
$cn->insert();
$cn->insert();
- $cn->sendManual();
+ $
sent = $
cn->sendManual();
- $this->jok("SUCCESS");
+ if(get_class($sent) != 'Pman_Core_NotifySend_Exception_Success'){
+ $this->jerr($sent->getMessage());
+ }
+ $this->jok("SUCCESS");
/*
$mid = $_REQUEST['_id'];
/*
$mid = $_REQUEST['_id'];
@@
-110,6
+113,8
@@
class Pman_Core_MessagePreview extends Pman
$content = $x->{$method}($this, $this->authUser);
$content = $x->{$method}($this, $this->authUser);
+ $content['bcc'] = array();
+
$sent = $core_email->send($content);
if(is_object($sent)){
$sent = $core_email->send($content);
if(is_object($sent)){