explode, set headers

This commit is contained in:
Synchro 2015-03-02 14:32:32 +01:00
parent 2257643e21
commit e16b86b84f
1 changed files with 2 additions and 2 deletions

View File

@ -1956,8 +1956,8 @@ class PHPMailer
$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);