[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread R. David Murray
R. David Murray added the comment: In 3.4/3.5 a better fix would be to use EmailMessage instead of Message, and smtp.send_message instead of smtp.sendmail. That will do the right thing, where "the right thing" is defined as defaulting to utf-8 for both headers and body. A specific

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread R. David Murray
R. David Murray added the comment: To clarify: it will default to utf-8 encoded for email transport. (Since email now supports SMTPUTF8, what I said could have meant defaulting to that, which it does *not* do.) -- ___ Python tracker

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread simon04
simon04 added the comment: I don't see why/how this should be fixed in Python 3. Using the example from msg109621 and Python 3.5.0, I get: --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3.5/logging/handlers.py", line 985, in emit smtp.sendmail(self.fromaddr,

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2012-01-18 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Just as a post-fix to this, the email handlers for the python logging framework that I maintain as a package on PyPI now handle unicode email correctly: http://pypi.python.org/pypi/mailinglogger/3.7.0 I'd suggest people looking for

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Given Vinay's last comment I don't think this needs addressing in 2.x, and it is not a problem in 3.x. -- nosy: +r.david.murray resolution: - out of date stage: - committed/rejected status: pending - closed versions: +Python

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2010-08-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: SMTPHandler provides an implementation for the simplest/most common case. Full support for encoding in emails is likely to be application-specific, i.e. no one-size-fits-all can be easily specified. For example, different encodings could

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2010-07-09 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- title: SMTPHandler does not handle unicode strings - SMTPHandler in the logging module does not handle unicode strings ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9208