浏览代码

fix for missed encoding header line. Thnx tokul for spotting this.

stekkel 22 年之前
父节点
当前提交
dd6a702742
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/compose.php

+ 6 - 1
src/compose.php

@@ -1405,7 +1405,12 @@ function deliverMessage($composeMessage, $draft=false) {
         array_unshift($composeMessage->entities, $message_body);
         $content_type = new ContentType('multipart/mixed');
     } else {
-            $content_type = new ContentType('text/plain');
+        $content_type = new ContentType('text/plain');
+        if ($special_encoding) {
+            $rfc822_header->encoding = $special_encoding;
+        } else {    
+            $rfc822_header->encoding = '8bit';
+        }            
     }
     if ($default_charset) {
         $content_type->properties['charset']=$default_charset;