Skip to content

Commit

Permalink
Only set a content-transfer-encoding header if it's not 7bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed May 9, 2013
1 parent 8825b15 commit 9794677
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,10 @@ public function GetMailMIME() {
$result .= $this->TextLine('Content-Type: '.$this->ContentType.'; charset='.$this->CharSet);
break;
}
$result .= $this->HeaderLine('Content-Transfer-Encoding', $this->Encoding);
//RFC1341 part 5 says 7bit is assumed if not specified
if ($this->Encoding != '7bit') {
$result .= $this->HeaderLine('Content-Transfer-Encoding', $this->Encoding);
}

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

0 comments on commit 9794677

Please sign in to comment.