thorsten/phpMyFAQ — Issue #361: email header newline issue in some setups
Author: vangual
Created: 2011-11-29 07:52:13+00:00
State: open

As discussed with Thorsten via email. Proposing the following workaround for some email server scenarios.

--- inc/PMF_Mail/Builtin.php.orig 2011-09-29 14:12:39.000000000 +0200
+++ inc/PMF_Mail/Builtin.php 2011-11-23 16:12:41.498935528 +0100
@@ -69,7 +69,7 @@
// Prepare the headers for the e-mail
$mailHeaders = '';
foreach ($headers as $key => $value) {
- $mailHeaders .= $key.': '.$value."\r\n";
+ $mailHeaders .= $key.': '.$value.PHP_EOL;
}

// Send the e-mail