Ticket #9659 (closed Bug: fixed)

Opened 2 years ago

Last modified 2 years ago

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.

  1. 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))

  1. 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.

  1. 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)

  1. 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)

  1. 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())

  1. Content Rule Action:

Script location: plone.app.contentrules.actions.mail.MailActionExecutor Relevant Spot: mailhost.send(message, email_recipient, source,

subject=subject, charset=email_charset)

Change History

comment:1 Changed 2 years ago by terapyon

  • Cc terada@… added

comment:2 Changed 2 years ago by alecm

  • Status changed from new to closed
  • Resolution set to fixed

(In [30946]) registerNotify and mailPassword now send properly encoded emails. Fixes #9659

Note: See TracTickets for help on using tickets.