diff --git a/class.phpmailer.php b/class.phpmailer.php index 8eb85b724..a9962cc59 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -1956,8 +1956,8 @@ public function createBody() $body = file_get_contents($signed); @unlink($signed); //The message returned by openssl contains both headers and body, so need to split them up - $parts = preg_split('/\n\n/', $body, 2); - $this->mailHeader .= $parts[0] ."\n"; + $parts = explode("\n\n", $body, 2); + $this->MIMEHeader .= $parts[0] . $this->LE . $this->LE; $body = $parts[1]; } else { @unlink($file);