Skip to content

Commit

Permalink
Merge pull request #770 from hashtopolis/bug_751
Browse files Browse the repository at this point in the history
Fixed sending two to headers when sending email.
  • Loading branch information
s3inlc committed Jun 5, 2022
2 parents 2f1183e + 806aec0 commit 808ee25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
1 change: 0 additions & 1 deletion src/inc/Util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 808ee25

Please sign in to comment.