fix mail error message
This commit is contained in:
parent
edbf4dc375
commit
53a76dc01f
@ -491,7 +491,12 @@ if (($action == 'send' || $action == 'relance') && !$_POST['addfile'] && !$_POST
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$mesg .= 'No mail sent. Feature is disabled by option MAIN_DISABLE_ALL_MAILS';
|
$mesg .= $langs->transnoentities('ErrorFailedToSendMail', dol_escape_htmltag($from), dol_escape_htmltag($sendto));;
|
||||||
|
if (!empty($conf->global->MAIN_DISABLE_ALL_MAILS)) {
|
||||||
|
$mesg .= '<br>Feature is disabled by option MAIN_DISABLE_ALL_MAILS';
|
||||||
|
} else {
|
||||||
|
$mesg .= '<br>Unkown Error, please refers to your administrator';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$mesg .= '</div>';
|
$mesg .= '</div>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user