[issue2551049] Mailer (outgoing) not working with non-ascii content

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from Ralf Schlatterbeck:

The mailer currently uses message.set_payload method without a charset
(charset is an optional argument). This results in a traceback with a
decoding error:

Error: 'ascii' codec can't encode character u'\xe4' in position 15:
ordinal not in range(128)

The fix is to pass the configured charset.

Note that I'm using mailer.standard_message explicitly in a reactor and
I'm not sure if normal nosy emails use the same code path.

I'll push a patch but wanted to document this.

----------
assignee: schlatterbeck
components: Mail interface
messages: 6569
nosy: cmeerw, schlatterbeck
severity: normal
status: new
title: Mailer (outgoing) not working with non-ascii content
type: crash
versions: 2.0.0alpha

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551049>
_________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.