projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc26242
)
NotifySmtpCheck.php
author
edward
<edward@roojs.com>
Thu, 14 Jul 2016 04:03:29 +0000
(12:03 +0800)
committer
edward
<edward@roojs.com>
Thu, 14 Jul 2016 04:03:29 +0000
(12:03 +0800)
NotifySmtpCheck.php
patch
|
blob
|
history
diff --git
a/NotifySmtpCheck.php
b/NotifySmtpCheck.php
index
b4e83c5
..
961496a
100644
(file)
--- a/
NotifySmtpCheck.php
+++ b/
NotifySmtpCheck.php
@@
-45,7
+45,14
@@
class Pman_Core_NotifySmtpCheck extends Pman
$mx = $smtpmx->_getMx($dom);
- print_r($smtpmx);exit;
+ foreach ($mx as $mserver => $mpriority) {
+
+
+ // attempt to connect to the configured SMTP server.
+ $res = $smtpmx->_smtp->connect($smtpmx->timeout);
+
+ print_R($res);exit;
+ }
}