Browse Source

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

stekkel 22 years ago
parent
commit
dd6a702742
1 changed files with 6 additions and 1 deletions
  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);
         array_unshift($composeMessage->entities, $message_body);
         $content_type = new ContentType('multipart/mixed');
         $content_type = new ContentType('multipart/mixed');
     } else {
     } 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) {
     if ($default_charset) {
         $content_type->properties['charset']=$default_charset;
         $content_type->properties['charset']=$default_charset;