Skip to content

Commit

Permalink
Always set a Content-transfer-encoding header in MIME multiparts, fix…
Browse files Browse the repository at this point in the history
…es an error flagged by IETF msglint:

ERROR: mismatch between inner content-transfer-encoding and that of enclosing multipart.
  • Loading branch information
Synchro committed May 9, 2013
1 parent ecb9ed4 commit 8825b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1501,10 +1501,10 @@ public function GetMailMIME() {
break;
default:
// Catches case 'plain': and case '':
$result .= $this->HeaderLine('Content-Transfer-Encoding', $this->Encoding);
$result .= $this->TextLine('Content-Type: '.$this->ContentType.'; charset='.$this->CharSet);
break;
}
$result .= $this->HeaderLine('Content-Transfer-Encoding', $this->Encoding);

if($this->Mailer != 'mail') {
$result .= $this->LE;
Expand Down

0 comments on commit 8825b15

Please sign in to comment.