Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Merge branch 'patch-1' into '3-2-3'
Browse files Browse the repository at this point in the history
Fix usage of CC and BCC fields in mail header.

See merge request mike-koch/Mods-for-HESK!78
  • Loading branch information
mike-koch committed Nov 20, 2017
2 parents 477d55d + eeb5ada commit fefe1e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/email_functions.inc.php
Expand Up @@ -512,10 +512,10 @@ function hesk_mail($to, $subject, $message, $htmlMessage, $modsForHesk_settings,
$headers .= "MIME-Version: 1.0\n";
$headers .= "From: $hesk_settings[from_header]\n";
if (count($cc) > 0) {
$headers .= "Cc: " . implode(',', $cc);
$headers .= "Cc: " . implode(',', $cc) . "\n";
}
if (count($bcc) > 0) {
$headers .= "Bcc: " . implode(',', $bcc);
$headers .= "Bcc: " . implode(',', $bcc) . "\n";
}
$headers .= "Reply-To: $hesk_settings[from_header]\n";
$headers .= "Return-Path: $hesk_settings[webmaster_mail]\n";
Expand Down

0 comments on commit fefe1e2

Please sign in to comment.