if(!method_exists($x, $method)){
$this->jerr("{$method} does not exists in {$cls}");
}
-
+
$content = $x->{$method}($this, $this->authUser);
- $sent = $this->send($content);
+ $sent = $core_email->send($content);
- if(!is_object($sent)){
- $this->jok('SUCCESS');
+ if(is_object($sent)){
+ $this->jerr("Error sending email - " . $sent->toString());
}
- $this->jerr('error!!:' . $sent->toString());
-
-
+ $this->jok('SUCCESS');
}
}