summaryrefslogtreecommitdiff
path: root/inc/Mailer.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Mailer.class.php')
-rw-r--r--inc/Mailer.class.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/inc/Mailer.class.php b/inc/Mailer.class.php
index 256a76d22..f1492be9b 100644
--- a/inc/Mailer.class.php
+++ b/inc/Mailer.class.php
@@ -553,25 +553,15 @@ class Mailer {
* @returns string the headers
*/
protected function prepareHeaders() {
- $this->removeEmptyBccOrCcHeader();
$headers = '';
foreach($this->headers as $key => $val) {
+ if ($val === '') continue;
$headers .= "$key: $val".MAILHEADER_EOL;
}
return $headers;
}
/**
- * Removes empty BCC and CC Header.
- *
- * Empty BCC/CC Header can cause an error with Microsoft IIS.
- */
- protected function removeEmptyBccOrCcHeader() {
- if (isset($this->headers['Bcc']) && empty($this->headers['Bcc'])) unset($this->headers['Bcc']);
- if (isset($this->headers['Cc']) && empty($this->headers['Cc'])) unset($this->headers['Cc']);
- }
-
- /**
* return a full email with all headers
*
* This is mainly intended for debugging and testing but could also be