You are here: Home Plone products collective.langMailHost

collective.langMailHost (0.3.5)

by Olha Pelishok last modified 2011-03-17
Released on 2011-03-03 by Taito Horiuchi for Plone 4.0 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
This package aims to provide language dependent character set for sending emails form Plone site.

Character set of outgoing mail of Plone is defined in a portal property name "email_charset" and this charset set is globally used in the Plone site. This is fine with monolingual site, however in multilingual site, there are cases you want to send mails with differernt character sets for different languages. This package provide this function simply by overriding secureSend method from SecureMailHost class, some scripts and templates.

There are five main default cases for sending e-mails from Plone site:

  1. When new user registers to the site with password setting disabled.
  2. When a user forgets password and plone sends the user the guide to reset it.
  3. When user contacts administrator form contact form.
  4. When sending content to somebody from "Send this" link.
  5. When content rules trigers sending mail, ex) when adding content to a certain folder.

All these five cases are supported by this package, however tests are only done with character set of iso-2022-jp for Japanese language and utf-8 for other languages.

Setting language and character set

Once you installed this package from quickinstaller, go to ZMI of the plone site. Within portal_properties, there is mailhost_properties where you can set two propeties.

  • lang_charset

    'ja|iso-2022-jp' is default value. This means for Japanese language ('ja'), use character set 'iso-2022-jp'. To add other language and character set pair, add it line by line. Remenber to follow this syntax: language|charset

  • is_member_lang_effective

    If this option is selected, logged in member receives e-mail with the character set of member's choice of languages.

Document Actions
Powered by Plone