"Notification event cleared (not required any more)"
."\n");
}
-
- if (empty($p) && !empty($email['rcpts'])) {
+ if (is_a($email, 'PEAR_Error')) {
+ $email =array(
+ 'error' => $email->toString()
+ );
+ }
+
+ if (empty($p) && !empty($email['recipients'])) {
// make a fake person..
$p = (object) array(
- 'email' => $email['rcpts']
+ 'email' => $email['recipients']
);
}
-
+
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']) ?
}
- if (empty($p)) {
//$p->email = 'alan@akbkhome.com'; //for testing..
}
// since some of them have spaces?!?!
- $p->email = trim($p->email);
- }
+ $p->email = trim($p->email);
+
require_once 'Validate.php';
if (!Validate::email($p->email, true)) {
foreach($mxs as $dom) {
-
-
if (!isset($ff->Mail['helo'])) {
$this->errorHandler("config Mail[helo] is not set");
}
// if the host is the mail host + it's authenticated add auth details
// this normally will happen if you sent Pman_Core_NotifySend['host']
if (isset($ff->Mail['host']) && $ff->Mail['host'] == $dom && !empty($ff->Mail['auth'] )) {
+
+ if(!empty($ff->Core_Notify)){
+
+ $preferHost = false;
+
+ foreach ($ff->Core_Notify['routes'] as $server => $settings){
+// if(!in_array($, $haystack))
+ }
+
+ }
+
$mailer->auth = true;
$mailer->username = $ff->Mail['username'] ;
$mailer->password = $ff->Mail['password'] ;