kapilt / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

Notification mails cannot handle international chars #282

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Edit the mails in the control panel
2. Enter for instance a 'å'
3. go through a checkout

What is the expected output? What do you see instead?
Expect to see a mail with international chars, same encoding and format as
for instance the mail generated by sendto_form in plone.

The actual error is swallowed at the moment (see previous report). No mail
is sent.

What version of the product are you using? On what version of Plone? How
did you install it (tarball vs buildout vs...)?

trunk, utf-8 plone site, plone 3.2.3

Please provide any additional information below.

Original issue reported on code.google.com by sune.woeller@gmail.com on 11 Dec 2009 at 11:10

GoogleCodeExporter commented 8 years ago

Original comment by sune.woeller@gmail.com on 4 Jan 2010 at 1:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I had this same thing happen in my own cart, it turns out that the MailHost was 
choking on the utf-8 characters and it was a simple fix to re-encode the 
message in as quoted-printable.

In Products.PloneGetPaid, in notifications.py in the sendNotification method, 
change 

mailer.send(str(message))

to 

mailer.send(message.encode('utf-8'), encode='quoted-printable')

Original comment by joseph.m...@gmail.com on 14 Dec 2010 at 10:38