Ticket #9659 (closed Bug: fixed)
CJK text encoding does not work at Mail sending
| Reported by: | tyam | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 4.0 |
| Component: | Internationalization | Keywords: | mail, encoding, cjk |
| Cc: | terada@… |
Description
We have checked out the Plone 4.0 code on October 17 and tested CJK compatibility. We have found these two spots needs to have some fixes, because they don't generate well-formated/encoded text for subject and body. Actually, this bug exists on Plone 3.3.1 as well.
- Account Registration (Registration by user oneself and also by administrator)
Script locatoin: Products.CMFPlone.RegistrationTool.RegistrationTool.registeredNotify Template location: Products.PasswordResetTool.skins.PasswordReset.registered_notify_template.pt Relevant Spot: host.send(mail_text.encode(encoding))
- Forgot Passoword Form
Script location: Products.CMFPlone.RegistrationTool.RegistrationTool.mailPassword Template location: Products.PasswordResetTool.skins.PasswordReset.mail_password_template.pt Relevant Spot: host.send( mail_text )
The these call does not handle CJK text properly. Other 4 spots which handles email does CJK text properly. So they are good to be referred to.
- Feedback form to the administrator (contact form):
Script location: Products.CMFPlone.skins.plone_form_scripts.send_feedback_site.cpy Template location: Products.CMFPlone.skins.plone_template.site_feedback_template.pt Relevant Spot: result = host.send(message, send_to_address, envelope_from,
subject=subject, charset=encoding)
- Feedback form to the author:
Script location: Products.CMFPlone.skins.plone_form_scripts.send_feedback.cpy Template location: Products.CMFPlone.skins.plone_template.author_feedback_template.pt Relevant Spot: result = host.send(message, send_to_address, envelope_from,
subject=subject, charset=encoding)
- Send-This form:
Script location: Products.CMFPlone.PloneTool.PloneTool.sendto Template location: Products.CMFPlone.skins.plone_template.sendto_template.pt Relevant Spot: result = host.send(message, mto=send_to_address,
mfrom=envelope_from, subject=subject, charset=self.getSiteEncoding())
- Content Rule Action:
Script location: plone.app.contentrules.actions.mail.MailActionExecutor Relevant Spot: mailhost.send(message, email_recipient, source,
subject=subject, charset=email_charset)
