forked from Wavyzz/dolibarr
Fix: Can provide ip address on smtps. Better error reporting.
This commit is contained in:
@@ -401,17 +401,18 @@ class CMailFile
|
||||
{
|
||||
if (! empty($conf->global->MAIN_MAIL_DEBUG)) $this->smtps->setDebug(true);
|
||||
$result=$this->smtps->sendMsg();
|
||||
if (! $result)
|
||||
{
|
||||
$this->error=$this->smtps->getErrors();
|
||||
}
|
||||
//print $result;
|
||||
}
|
||||
|
||||
if (! empty($conf->global->MAIN_MAIL_DEBUG)) $this->dump_mail();
|
||||
|
||||
$result=$this->smtps->getErrors();
|
||||
if (empty($this->error) && empty($result)) $res=true;
|
||||
else $res=false;
|
||||
else
|
||||
{
|
||||
if (empty($this->error)) $this->error=$result;
|
||||
$res=false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user