projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
552aa6e
)
NotifySmtpCheck.php
author
edward
<edward@roojs.com>
Thu, 14 Jul 2016 04:54:22 +0000
(12:54 +0800)
committer
edward
<edward@roojs.com>
Thu, 14 Jul 2016 04:54:22 +0000
(12:54 +0800)
NotifySmtpCheck.php
patch
|
blob
|
history
diff --git
a/NotifySmtpCheck.php
b/NotifySmtpCheck.php
index
67bc8a4
..
0113564
100644
(file)
--- a/
NotifySmtpCheck.php
+++ b/
NotifySmtpCheck.php
@@
-54,13
+54,15
@@
class Pman_Core_NotifySmtpCheck extends Pman
// $smtpmx = new Mail_smtpmx($params);
// $smtpmx->debug = true;
// $smtpmx = new Mail_smtpmx($params);
// $smtpmx->debug = true;
- $options = array (
- 'ssl' => array(
- 'verify_peer' => false,
- 'verify_peer_name' => false,
- 'allow_self_signed' => true));
+ $socket_options = array (
+ 'ssl' => array(
+ 'verify_peer' => false,
+ 'verify_peer_name' => false,
+ 'allow_self_signed' => true
+ )
+ );
- $smtp = new Net_SMTP($server, 993, $dom, false, 0, $options);
+ $smtp = new Net_SMTP($server, 993, $dom, false, 0, $
socket_
options);
$smtp->setDebug(true);
// print_R($smtp);
$smtp->setDebug(true);
// print_R($smtp);
@@
-73,9
+75,8
@@
class Pman_Core_NotifySmtpCheck extends Pman
print_R('error?????');exit;
}
print_R('error?????');exit;
}
- $r = $smtp->auth($settings['username'], $settings['password']);
+ $r
es
= $smtp->auth($settings['username'], $settings['password']);
- print_R($r);exit;
// $smtpmx->_smtp->disconnect();
print_r("resutlt : {$res} \n");
exit;
// $smtpmx->_smtp->disconnect();
print_r("resutlt : {$res} \n");
exit;