projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
71ffc99
)
fix timeout
author
Alan
<alan@roojs.com>
Wed, 11 Oct 2023 03:31:48 +0000
(11:31 +0800)
committer
Alan
<alan@roojs.com>
Wed, 11 Oct 2023 03:31:48 +0000
(11:31 +0800)
NotifySend.php
patch
|
blob
|
history
diff --git
a/NotifySend.php
b/NotifySend.php
index
3d3fece
..
e7fa445
100644
(file)
--- a/
NotifySend.php
+++ b/
NotifySend.php
@@
-428,6
+428,9
@@
class Pman_Core_NotifySend extends Pman
$res = $mailer->send($p->email, $email['headers'], $email['body']);
$res = $mailer->send($p->email, $email['headers'], $email['body']);
+ if (is_object($res)) {
+ $res->backtrace = array();
+ }
$this->debug("GOT response to send: ". print_r($res,true));
if ($res === true) {
$this->debug("GOT response to send: ". print_r($res,true));
if ($res === true) {
@@
-484,7
+487,7
@@
class Pman_Core_NotifySend extends Pman
$errmsg= $res->userinfo['smtpcode'] . ':' . $res->userinfo['smtptext'];
}
//print_r($res);
$errmsg= $res->userinfo['smtpcode'] . ':' . $res->userinfo['smtptext'];
}
//print_r($res);
- $this->addEvent('NOTIFY', $w, 'GREYLISTED - ' . $errmsg);
+ $
ev = $
this->addEvent('NOTIFY', $w, 'GREYLISTED - ' . $errmsg);
$this->server->updateNotifyToNextServer($w, strtotime('NOW + ' . $retry . ' MINUTES'),true);
$this->server->updateNotifyToNextServer($w, strtotime('NOW + ' . $retry . ' MINUTES'),true);