[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/doc/ -> japanese.rst (source)

   1  Using Swift Mailer for Japanese Emails
   2  ======================================
   3  
   4  To send emails in Japanese, you need to tweak the default configuration.
   5  
   6  Call the ``Swift::init()`` method with the following code as early as possible
   7  in your code::
   8  
   9      Swift::init(function () {
  10          Swift_DependencyContainer::getInstance()
  11              ->register('mime.qpheaderencoder')
  12              ->asAliasOf('mime.base64headerencoder');
  13  
  14          Swift_Preferences::getInstance()->setCharset('iso-2022-jp');
  15      });
  16  
  17      /* rest of code goes here */
  18  
  19  That's all!


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1