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')
|
||||
{
|
||||
$result=$mail->sendfile();
|
||||
if (! $result)
|
||||
{
|
||||
print "Error sending email ".$mail->error."\n";
|
||||
dol_syslog("Error sending email ".$mail->error."\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -244,6 +244,11 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldsalerepresenta
|
||||
if ($mode == 'confirm')
|
||||
{
|
||||
$result=$mail->sendfile();
|
||||
if (! $result)
|
||||
{
|
||||
print "Error sending email ".$mail->error."\n";
|
||||
dol_syslog("Error sending email ".$mail->error."\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -264,6 +264,11 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldtarget)
|
||||
if ($mode == 'confirm')
|
||||
{
|
||||
$result=$mail->sendfile();
|
||||
if (! $result)
|
||||
{
|
||||
print "Error sending email ".$mail->error."\n";
|
||||
dol_syslog("Error sending email ".$mail->error."\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -239,6 +239,11 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldsalerepresenta
|
||||
if ($mode == 'confirm')
|
||||
{
|
||||
$result=$mail->sendfile();
|
||||
if (! $result)
|
||||
{
|
||||
print "Error sending email ".$mail->error."\n";
|
||||
dol_syslog("Error sending email ".$mail->error."\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user