Skip to content

Commit

Permalink
Reapply charset quiting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Apr 27, 2012
1 parent 06aff1b commit fb70deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ public function GetMailMIME() {
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;');
Expand Down Expand Up @@ -1444,7 +1444,7 @@ protected function GetBoundary($boundary, $charSet, $contentType, $encoding) {
$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;
Expand Down

0 comments on commit fb70deb

Please sign in to comment.