projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0d32773
)
NotifySmtpCheck.php
author
edward
<edward@roojs.com>
Thu, 14 Jul 2016 04:47:51 +0000
(12:47 +0800)
committer
edward
<edward@roojs.com>
Thu, 14 Jul 2016 04:47:51 +0000
(12:47 +0800)
NotifySmtpCheck.php
patch
|
blob
|
history
diff --git
a/NotifySmtpCheck.php
b/NotifySmtpCheck.php
index
397665a
..
95cecd7
100644
(file)
--- a/
NotifySmtpCheck.php
+++ b/
NotifySmtpCheck.php
@@
-54,7
+54,13
@@
class Pman_Core_NotifySmtpCheck extends Pman
// $smtpmx = new Mail_smtpmx($params);
// $smtpmx->debug = true;
- $smtp = new Net_SMTP($server, 25, $dom);
+ $options = array(
+ 'verify_peer' => false,
+ 'verify_peer_name' => false,
+ 'allow_self_signed' => true);
+
+ $smtp = new Net_SMTP($server, 25, $dom, false, 0, $options);
+
$smtp->setDebug(true);
// print_R($smtp);