Navigation Menu

Skip to content

Commit

Permalink
explode, set headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Mar 2, 2015
1 parent 2257643 commit e16b86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class.phpmailer.php
Expand Up @@ -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);
Expand Down

0 comments on commit e16b86b

Please sign in to comment.