Merge pull request #1718 from hector-cortez/BUG-11519e

BUG 11519 Error de autenticación al probar envio de correos via hotmail SOLVED
This commit is contained in:
julceslauhub
2013-05-13 06:37:52 -07:00
33 changed files with 4012 additions and 1733 deletions

View File

@@ -485,15 +485,23 @@ class adminProxy extends HttpProxyController
if (strtoupper($UseSecureCon) == 'TLS') {
$smtp->Hello($hello);
}
if ( $smtp->Authenticate($user, $passwd) ) {
if ($smtp->Authenticate($user, $passwd) ) {
$this->success = true;
} else {
$this->success = false;
$this->msg = $smtp->error['error'];
if (strtoupper($UseSecureCon) == 'TLS') {
$this->success = true;
} else {
$this->success = false;
$smtpError = $smtp->getError();
$this->msg = $smtpError['error'];
// $this->msg = $smtp->error['error'];
}
}
} else {
$this->success = false;
$this->msg = $smtp->error['error'];
$smtpError = $smtp->getError();
$this->msg = $smtpError['error'];
// $this->msg = $smtp->error['error'];
}
} catch (Exception $e) {
$this->success = false;
@@ -534,7 +542,9 @@ class adminProxy extends HttpProxyController
$this->success=true;
} else {
$this->success=false;
$this->msg=$smtp->error['error'];
$smtpError = $smtp->getError();
$this->msg = $smtpError['error'];
// $this->msg = $smtp->error['error'];
}
} catch (Exception $e) {
$this->success = false;

View File

@@ -164,11 +164,15 @@ switch ($request) {
if ($smtp->Authenticate( $user, $passwd )) {
print (SUCCESSFUL . ',' . $smtp->status) ;
} else {
print (FAILED . ',' . $smtp->error['error']) ;
$smtpError = $smtp->getError();
print (FAILED . ',' . $smtpError['error']);
// print (FAILED . ',' . $smtp->error['error']) ;
}
} else {
print (FAILED . ',' . $smtp->error['error']) ;
$smtpError = $smtp->getError();
print (FAILED . ',' . $smtpError['error']);
// print (FAILED . ',' . $smtp->error['error']) ;
}
} catch (Exception $e) {
print (FAILED . ',' . $e->getMessage()) ;