[FIX] unicode problem in mail sending

bzr revid: christophe@tinyerp.com-20090305121416-pn3jr87wyrnj220d
This commit is contained in:
Christophe Simonis 2009-03-05 13:14:16 +01:00
parent aa70e5588a
commit 0f2f4d073b
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ def email_send(email_from, email_to, subject, body, email_cc=None, email_bcc=Non
else:
msg = MIMEMultipart()
msg['Subject'] = Header(subject.decode('utf8'), 'utf-8')
msg['Subject'] = Header(ustr(subject), 'utf-8')
msg['From'] = email_from
del msg['Reply-To']
if reply_to: