"Notification event cleared (not required any more)"
."\n");
}
+ if (is_a($email, 'PEAR_Error')) {
+ $email =array(
+ 'error' => $email->toString()
+ );
+ }
- if (empty($p) && !empty($email['rcpts'])) {
+ if (empty($p) && !empty($email['recipients'])) {
// make a fake person..
$p = (object) array(
- 'email' => $email['rcpts']
+ 'email' => $email['recipients']
);
}
- print_R($email);exit;
-
-
+
if ($email === false || isset($email['error']) || empty($p)) {
// object returned 'false' - it does not know how to send it..
$ev = $this->addEvent('NOTIFY', $w, isset($email['error']) ?