Fix: Test error code
This commit is contained in:
parent
a61f6194ca
commit
0bffb6e654
@ -245,6 +245,11 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldcustomer,$dura
|
|||||||
if ($mode == 'confirm')
|
if ($mode == 'confirm')
|
||||||
{
|
{
|
||||||
$result=$mail->sendfile();
|
$result=$mail->sendfile();
|
||||||
|
if (! $result)
|
||||||
|
{
|
||||||
|
print "Error sending email ".$mail->error."\n";
|
||||||
|
dol_syslog("Error sending email ".$mail->error."\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -244,6 +244,11 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldsalerepresenta
|
|||||||
if ($mode == 'confirm')
|
if ($mode == 'confirm')
|
||||||
{
|
{
|
||||||
$result=$mail->sendfile();
|
$result=$mail->sendfile();
|
||||||
|
if (! $result)
|
||||||
|
{
|
||||||
|
print "Error sending email ".$mail->error."\n";
|
||||||
|
dol_syslog("Error sending email ".$mail->error."\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -264,6 +264,11 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldtarget)
|
|||||||
if ($mode == 'confirm')
|
if ($mode == 'confirm')
|
||||||
{
|
{
|
||||||
$result=$mail->sendfile();
|
$result=$mail->sendfile();
|
||||||
|
if (! $result)
|
||||||
|
{
|
||||||
|
print "Error sending email ".$mail->error."\n";
|
||||||
|
dol_syslog("Error sending email ".$mail->error."\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -239,6 +239,11 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldsalerepresenta
|
|||||||
if ($mode == 'confirm')
|
if ($mode == 'confirm')
|
||||||
{
|
{
|
||||||
$result=$mail->sendfile();
|
$result=$mail->sendfile();
|
||||||
|
if (! $result)
|
||||||
|
{
|
||||||
|
print "Error sending email ".$mail->error."\n";
|
||||||
|
dol_syslog("Error sending email ".$mail->error."\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user