mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Log success of emails
This commit is contained in:
parent
b4600fdc06
commit
08862fb482
|
|
@ -83,9 +83,10 @@ if (! $error && $massaction == 'confirm_presend')
|
|||
if ($result > 0)
|
||||
{
|
||||
$listofobjectid[$toselectid]=$toselectid;
|
||||
$thirdpartyid=$objecttmp->fk_soc?$objecttmp->fk_soc:$objecttmp->socid;
|
||||
$thirdpartyid=($objecttmp->fk_soc?$objecttmp->fk_soc:$objecttmp->socid);
|
||||
if ($objecttmp->element == 'societe') $thirdpartyid=$objecttmp->id;
|
||||
if ($objecttmp->element == 'expensereport') $thirdpartyid=$objecttmp->fk_user_author;
|
||||
if ($objecttmp->element == 'holiday') $thirdpartyid=$objecttmp->fk_user;
|
||||
$listofobjectthirdparties[$thirdpartyid]=$thirdpartyid;
|
||||
$listofobjectref[$thirdpartyid][$toselectid]=$objecttmp;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -735,7 +735,11 @@ class CMailFile
|
|||
if (! empty($conf->global->MAIN_MAIL_DEBUG)) $this->dump_mail();
|
||||
|
||||
$result=$this->smtps->getErrors();
|
||||
if (empty($this->error) && empty($result)) $res=true;
|
||||
if (empty($this->error) && empty($result))
|
||||
{
|
||||
dol_syslog("CMailFile::sendfile: mail end success", LOG_DEBUG);
|
||||
$res=true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (empty($this->error)) $this->error=$result;
|
||||
|
|
@ -798,6 +802,10 @@ class CMailFile
|
|||
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERR);
|
||||
$res=false;
|
||||
}
|
||||
else
|
||||
{
|
||||
dol_syslog("CMailFile::sendfile: mail end success", LOG_DEBUG);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user