From: Alan Knowles Date: Fri, 12 Jun 2015 02:44:53 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=6f1cae4f2ca92110999851d74e368738b82ce051 NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index d06d42af..47d834c7 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -353,6 +353,15 @@ class Pman_Core_NotifySend extends Pman 'debug' => 1, 'debug_handler' => array($this, 'debugHandler') )); + + // 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'] )) { + $mailer->auth = true; + $mailer->username = $ff->Mail['username'] ; + $mailer->password = $ff->Mail['password'] ; + } + $res = $mailer->send($p->email, $email['headers'], $email['body']);