From af321bab80051187e972449f0646cb668c3ee007 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Tue, 22 Jul 2025 01:25:40 +0200 Subject: [PATCH] Debug v22 - FIX Message-ID not set with SMTPs --- htdocs/core/class/smtps.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/smtps.class.php b/htdocs/core/class/smtps.class.php index 3ab9f9fd561..c75a017b5d6 100644 --- a/htdocs/core/class/smtps.class.php +++ b/htdocs/core/class/smtps.class.php @@ -1568,10 +1568,10 @@ class SMTPs $trackid = $this->getTrackId(); if ($trackid) { - $_header .= 'Message-ID: <'.(empty($this->_msgId) ? uniqid() : $this->_msgId).'.SMTPs-dolibarr-'.$trackid.'@'.$host.">\r\n"; + $_header .= 'Message-ID: <'.(empty($this->_msgId) ? uniqid().'.SMTPs-dolibarr-'.$trackid.'@'.$host : $this->_msgId).">\r\n"; $_header .= 'X-Dolibarr-TRACKID: '.$trackid.'@'.$host."\r\n"; } else { - $_header .= 'Message-ID: <'.(empty($this->_msgId) ? uniqid() : $this->_msgId).'.SMTPs@'.$host.">\r\n"; + $_header .= 'Message-ID: <'.(empty($this->_msgId) ? uniqid().'.SMTPs@'.$host : $this->_msgId).">\r\n"; } if (!empty($_SERVER['REMOTE_ADDR'])) { $_header .= "X-RemoteAddr: ".$_SERVER['REMOTE_ADDR']."\r\n";