[FIX] unicode problem in mail sending
bzr revid: christophe@tinyerp.com-20090305121416-pn3jr87wyrnj220d
This commit is contained in:
parent
aa70e5588a
commit
0f2f4d073b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue