diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index d5fca1dd441..d9f54cf8f66 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -3308,12 +3308,12 @@ class Ticket extends CommonObject $langs->load("other"); if ($mailfile->error) { setEventMessages($langs->trans('ErrorFailedToSendMail', $from, $receiverstring), null, 'errors'); - dol_syslog($langs->trans('ErrorFailedToSendMail', $from, $receiverstring).' : '.$mailfile->error); + dol_syslog('ErrorFailedToSendMail from='.$from.' to='.$receiverstring.' : '.$mailfile->error); } elseif (getDolGlobalString('MAIN_DISABLE_ALL_MAILS')) { setEventMessages('No mail sent. Feature is disabled by option MAIN_DISABLE_ALL_MAILS', null, 'errors'); } else { setEventMessages($langs->trans('ErrorFailedToSendMail', $from, $receiverstring), null, 'errors'); - dol_syslog('ErrorFailedToSendMail (no error details) from='.$from.' to='.$receiverstring, LOG_WARNING); + dol_syslog('ErrorFailedToSendMail from='.$from.' to='.$receiverstring.' : (no error details)', LOG_WARNING); } } }