From f62eccd9a76c743f31629ce946295c645a4661df Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 9 Feb 2009 15:17:26 +0000 Subject: [PATCH] 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. --- phpgwapi/inc/class.phpmailer.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.phpmailer.inc.php b/phpgwapi/inc/class.phpmailer.inc.php index f951e6288f..f9f367814a 100644 --- a/phpgwapi/inc/class.phpmailer.inc.php +++ b/phpgwapi/inc/class.phpmailer.inc.php @@ -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); }