summaryrefslogtreecommitdiff
path: root/core/libraries/Sendmail.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/Sendmail.php')
-rw-r--r--core/libraries/Sendmail.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/libraries/Sendmail.php b/core/libraries/Sendmail.php
index 3da641ed..e634a7a3 100644
--- a/core/libraries/Sendmail.php
+++ b/core/libraries/Sendmail.php
@@ -23,6 +23,7 @@ class Sendmail_Core {
protected $message;
protected $headers;
protected $line_length = 70;
+ protected $header_separator = "\r\n";
/**
* In test mode this gets the message that would have been set
@@ -85,7 +86,12 @@ class Sendmail_Core {
$key = ucfirst($key);
$headers[] = "$key: $value";
}
- $headers = implode("\r\n", $headers);
+
+ /*
+ * The docs say headers should be separated by \r\n, but occasionaly that doesn't work and you
+ * need to use a single \n. This can be set in config/sendmail.php
+ */
+ $headers = implode($this->header_separator, $headers);
$message = wordwrap($this->message, $this->line_length, "\n");
if (!TEST_MODE) {