web.sendmail fails when the message has unicode chars

Bug #180549 reported by Anand Chitipothu on 2008-01-05
Affects Status Importance Assigned to Milestone
Anand Chitipothu

Bug Description

Traceback (most recent call last):
  File "./web/utils.py", line 872, in sendmail
    smtpserver.sendmail(from_address, recipients, message)
  File "/usr/lib/python2.4/smtplib.py", line 696, in sendmail
    (code,resp) = self.data(msg)
  File "/usr/lib/python2.4/smtplib.py", line 493, in data
  File "/usr/lib/python2.4/smtplib.py", line 320, in send
  File "/usr/lib/python2.4/smtplib.py", line 140, in send
UnicodeEncodeError: 'ascii' codec can't encode character u'\u1234' in position 202: ordinal not in range(128)

Changed in webpy:
assignee: nobody → anandology
importance: Undecided → High
milestone: none → 0.23
status: New → Confirmed
Changed in webpy:
status: Confirmed → Fix Committed
Changed in webpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers