From 1a8b22cad3e32341125792f9c81ec65bcbaac5f9 Mon Sep 17 00:00:00 2001 From: Romke van Dijk Date: Fri, 20 May 2022 16:24:01 +0200 Subject: [PATCH] Fixed sending two to headers when sending email. Fixes #751 --- doc/changelog.md | 1 + src/inc/Util.class.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changelog.md b/doc/changelog.md index 1670eb4b0..b89b0191f 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -24,6 +24,7 @@ - Time of Zaps inserted is now saved. - Fixed unable to unassign agent from the task detail screen. - Fixed speed graph incorrect when status timer is different from servers default. +- Fixed sending two to headers when sending emails. ## Enhancements diff --git a/src/inc/Util.class.php b/src/inc/Util.class.php index a952005cf..d361754bd 100755 --- a/src/inc/Util.class.php +++ b/src/inc/Util.class.php @@ -1256,7 +1256,6 @@ public static function sendMail($address, $subject, $text, $plaintext) { $headers = "MIME-Version: 1.0\r\n"; $headers .= "From: " . SConfig::getInstance()->getVal(Dconfig::EMAIL_SENDER_NAME) . " <" . SConfig::getInstance()->getVal(DConfig::EMAIL_SENDER) . ">\r\n"; - $headers .= "To: " . $address . "\r\n"; $headers .= "Content-Type: multipart/alternative;boundary=" . $boundary . "\r\n"; $plainMessage = "\r\n\r\n--" . $boundary . "\r\n";