projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
784026d
)
NotifySend.php
author
Alan Knowles
<alan@roojs.com>
Fri, 12 Jun 2015 02:44:53 +0000
(10:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 12 Jun 2015 02:44:53 +0000
(10:44 +0800)
NotifySend.php
patch
|
blob
|
history
diff --git
a/NotifySend.php
b/NotifySend.php
index
d06d42a
..
47d834c
100644
(file)
--- a/
NotifySend.php
+++ b/
NotifySend.php
@@
-353,6
+353,15
@@
class Pman_Core_NotifySend extends Pman
'debug' => 1,
'debug_handler' => array($this, 'debugHandler')
));
'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']);
$res = $mailer->send($p->email, $email['headers'], $email['body']);