Skip to content

Commit

Permalink
Fixed sending two to headers when sending email.
Browse files Browse the repository at this point in the history
Fixes #751
  • Loading branch information
zyronix committed May 20, 2022
1 parent 8f14ebc commit 1a8b22c
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 @@ -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

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 @@ -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";
Expand Down

0 comments on commit 1a8b22c

Please sign in to comment.