From c2e5311a1826f656a0865902e4faf5aaf22a05c9 Mon Sep 17 00:00:00 2001 From: Anthony Berton Date: Mon, 9 Oct 2023 11:20:10 +0200 Subject: [PATCH] FIX - compare the result of the send mail file function --- htdocs/core/actions_sendmails.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/actions_sendmails.inc.php b/htdocs/core/actions_sendmails.inc.php index 5744316eb4a..a7562eb2c1e 100644 --- a/htdocs/core/actions_sendmails.inc.php +++ b/htdocs/core/actions_sendmails.inc.php @@ -370,7 +370,7 @@ if (($action == 'send' || $action == 'relance') && !GETPOST('addfile') && !GETPO $action = 'presend'; } else { $result = $mailfile->sendfile(); - if ($result) { + if ($result >= 0) { // Initialisation of datas of object to call trigger if (is_object($object)) { if (empty($actiontypecode)) {