projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1586a8b
)
NotifySmtpCheck.php
author
edward
<edward@roojs.com>
Thu, 14 Jul 2016 04:43:00 +0000
(12:43 +0800)
committer
edward
<edward@roojs.com>
Thu, 14 Jul 2016 04:43:00 +0000
(12:43 +0800)
NotifySmtpCheck.php
patch
|
blob
|
history
diff --git
a/NotifySmtpCheck.php
b/NotifySmtpCheck.php
index
827dda3
..
94c73ca
100644
(file)
--- a/
NotifySmtpCheck.php
+++ b/
NotifySmtpCheck.php
@@
-56,15
+56,17
@@
class Pman_Core_NotifySmtpCheck extends Pman
$smtp = new Net_SMTP($server, 25, $dom);
$smtp->setDebug(true);
$smtp = new Net_SMTP($server, 25, $dom);
$smtp->setDebug(true);
- print_R($smtp);
+
//
print_R($smtp);
// print_R($smtpmx->_smtp);exit;
// print_R($smtpmx->_smtp);exit;
- $res = $smtp
mx->_smtp
->connect($smtpmx->timeout);
+ $res = $smtp->connect($smtpmx->timeout);
if (is_a($res, 'PEAR_Error')) {
print_R('error?????');exit;
}
if (is_a($res, 'PEAR_Error')) {
print_R('error?????');exit;
}
+
+ $smtp->auth($settings['username'], $settings['password']);
// $smtpmx->_smtp->disconnect();
print_r("resutlt : {$res} \n");
// $smtpmx->_smtp->disconnect();
print_r("resutlt : {$res} \n");