fixing a problem regarding the passing on of the charset information, as some clients get confused if there is a blank between the word charset and the equual sign.

This commit is contained in:
Klaus Leithoff 2009-02-09 15:17:26 +00:00
parent 346f749219
commit f62eccd9a7

View File

@ -1083,7 +1083,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;
@ -1204,7 +1204,7 @@ class PHPMailer {
$mime[] = sprintf("--%s%s", $this->boundary[1], $this->LE);
if($disposition == 'part') {
$mime[] = sprintf("Content-Type: %s; charset =\"%s\"%s", $type, $this->CharSet, $this->LE);
$mime[] = sprintf("Content-Type: %s; charset=\"%s\"%s", $type, $this->CharSet, $this->LE);
} else {
$mime[] = sprintf("Content-Type: %s; name=\"%s\"%s", $type, $name, $this->LE);
}