From ab91631e68fc5e0334314261924440930ad6b445 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Tue, 29 Aug 2023 15:56:52 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06677=20-=20Ensure=20emails=20in=20test?= =?UTF-8?q?=20are=20never=20sent=20to=20cc'd=20and=20bcc'd=20addresses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/action.class.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/action.class.inc.php b/core/action.class.inc.php index 756f98a8f..53bf71865 100644 --- a/core/action.class.inc.php +++ b/core/action.class.inc.php @@ -650,6 +650,9 @@ class ActionEmail extends ActionNotification $aMessageContent['subject'] = 'TEST['.$aMessageContent['subject'].']'; $aMessageContent['body'] = $sTestBody; $aMessageContent['to'] = $this->Get('test_recipient'); + // N°6677 Ensure emails in test are never sent to cc'd and bcc'd addresses + $aMessageContent['cc'] = ''; + $aMessageContent['bcc'] = ''; } // Note: N°4849 We pass the "References" identifier instead of the "Message-ID" on purpose as we want notifications emails to group around the triggering iTop object, not just the users' replies to the notification $aMessageContent['in_reply_to'] = $aMessageContent['references'];