Only set a content-transfer-encoding header if it's not 7bit

This commit is contained in:
Synchro 2013-05-10 01:52:03 +02:00
parent 8825b159d3
commit 9794677766
1 changed files with 4 additions and 1 deletions

View File

@ -1504,7 +1504,10 @@ class PHPMailer {
$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;