Browse Source

Include _appCharset in serialisation process

Marlin Cremers 10 years ago
parent
commit
a786e951a7
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/Mailer/Email.php
  2. 1 0
      tests/TestCase/Mailer/EmailTest.php

+ 1 - 1
src/Mailer/Email.php

@@ -1906,7 +1906,7 @@ class Email implements JsonSerializable, Serializable
         $properties = [
             '_to', '_from', '_sender', '_replyTo', '_cc', '_bcc', '_subject',
             '_returnPath', '_readReceipt', '_emailFormat', '_emailPattern', '_domain',
-            '_attachments', '_messageId', '_headers', 'viewVars', 'charset', 'headerCharset'
+            '_attachments', '_messageId', '_headers', '_appCharset', 'viewVars', 'charset', 'headerCharset'
         ];
 
         $array = ['viewConfig' => $this->viewBuilder()->jsonSerialize()];

+ 1 - 0
tests/TestCase/Mailer/EmailTest.php

@@ -2701,6 +2701,7 @@ XML;
             '_emailFormat' => 'text',
             '_messageId' => '<uuid@server.com>',
             '_domain' => 'foo.bar',
+            '_appCharset' => 'UTF-8',
             'charset' => 'utf-8',
             'headerCharset' => 'utf-8',
             'viewConfig' => [