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)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$listofobjectid[$toselectid]=$toselectid;
|
$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 == 'societe') $thirdpartyid=$objecttmp->id;
|
||||||
if ($objecttmp->element == 'expensereport') $thirdpartyid=$objecttmp->fk_user_author;
|
if ($objecttmp->element == 'expensereport') $thirdpartyid=$objecttmp->fk_user_author;
|
||||||
|
if ($objecttmp->element == 'holiday') $thirdpartyid=$objecttmp->fk_user;
|
||||||
$listofobjectthirdparties[$thirdpartyid]=$thirdpartyid;
|
$listofobjectthirdparties[$thirdpartyid]=$thirdpartyid;
|
||||||
$listofobjectref[$thirdpartyid][$toselectid]=$objecttmp;
|
$listofobjectref[$thirdpartyid][$toselectid]=$objecttmp;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -735,7 +735,11 @@ class CMailFile
|
|||||||
if (! empty($conf->global->MAIN_MAIL_DEBUG)) $this->dump_mail();
|
if (! empty($conf->global->MAIN_MAIL_DEBUG)) $this->dump_mail();
|
||||||
|
|
||||||
$result=$this->smtps->getErrors();
|
$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
|
else
|
||||||
{
|
{
|
||||||
if (empty($this->error)) $this->error=$result;
|
if (empty($this->error)) $this->error=$result;
|
||||||
@ -798,6 +802,10 @@ class CMailFile
|
|||||||
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERR);
|
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERR);
|
||||||
$res=false;
|
$res=false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dol_syslog("CMailFile::sendfile: mail end success", LOG_DEBUG);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user