diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2009-03-05 13:14:16 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2009-03-05 13:14:16 +0100 |
| commit | 0f2f4d073bbcc4c06f1bc2d66daf558382e67618 (patch) | |
| tree | 3f8795c3dd2f3ff9ceedcd24e76440f6261e5033 /bin | |
| parent | aa70e5588a3ce204d7ec88cdfe822b32c8d23485 (diff) | |
[FIX] unicode problem in mail sending
bzr revid: christophe@tinyerp.com-20090305121416-pn3jr87wyrnj220d
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/tools/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tools/misc.py b/bin/tools/misc.py index 0ca02bae536..2cf387d438d 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -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: |
