Don't quote the charset in content-type headers. While RFC2045 section 5.1 says it should work with or without, it seems that some clients don't like it quoted.

This commit is contained in:
Marcus Bointon 2011-08-30 15:31:18 +03:00
parent cca7fc22fb
commit 366cbc8f9c
1 changed files with 2 additions and 2 deletions

View File

@ -1223,7 +1223,7 @@ class PHPMailer {
switch($this->message_type) {
case 'plain':
$result .= $this->HeaderLine('Content-Transfer-Encoding', $this->Encoding);
$result .= $this->TextLine('Content-Type: '.$this->ContentType.'; charset="'.$this->CharSet.'"');
$result .= $this->TextLine('Content-Type: '.$this->ContentType.'; charset='.$this->CharSet);
break;
case 'inline':
$result .= $this->HeaderLine('Content-Type', 'multipart/related;');
@ -1398,7 +1398,7 @@ class PHPMailer {
$encoding = $this->Encoding;
}
$result .= $this->TextLine('--' . $boundary);
$result .= sprintf("Content-Type: %s; charset=\"%s\"", $contentType, $charSet);
$result .= sprintf("Content-Type: %s; charset=%s", $contentType, $charSet);
$result .= $this->LE;
$result .= $this->HeaderLine('Content-Transfer-Encoding', $encoding);
$result .= $this->LE;