diff --git a/doc/changelog.md b/doc/changelog.md index 391f9d063..83f04ea65 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -25,6 +25,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 (issue #751). - Fixed access group not being changed on Hashlist detailed screen (issue #765). - Fixed missing check on permissions for sending notifications (issue #757). diff --git a/src/inc/Util.class.php b/src/inc/Util.class.php index 1dbfa2e3b..8576becbd 100755 --- a/src/inc/Util.class.php +++ b/src/inc/Util.class.php @@ -1257,7 +1257,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";