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:
@@ -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;
|
||||
|
||||
@@ -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()) ;
|
||||
|
||||
Reference in New Issue
Block a user