Skip to content

Commit

Permalink
Fix on quoted printable encoding on email subject line
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeho committed Jul 31, 2010
1 parent c10a6e6 commit 763b428
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/qcodo/_core/framework/QEmailServer.class.php
Expand Up @@ -569,7 +569,11 @@ public function CalculateMessageHeaderAndBody($strEncodingType = null, QDateTime
if (!$strEncodingType) $strEncodingType = QApplication::$EncodingType;

// Additional "Optional" Headers
if ($this->Subject) $this->SetHeader('Subject', sprintf("=?%s?Q?%s?=", $strEncodingType, self::QuotedPrintableEncode($this->Subject)));
if ($this->Subject) {
$strSubject = self::QuotedPrintableEncode($this->Subject);
$strSubject = str_replace('?', '=3F', $strSubject);
$this->SetHeader('Subject', sprintf("=?%s?Q?%s?=", $strEncodingType, $strSubject));
}
if ($this->Cc) $this->SetHeader('Cc', $this->Cc);

// Setup for MIME and Content Encoding
Expand Down

0 comments on commit 763b428

Please sign in to comment.