Ervin Hegedüs added the comment:
David,
many thanks for your information.
I think my e-mail format was correct - I've copied it from a maildir, as an
"email file".
As I wrote, there is a solution: before the code passes the 'msg' argument to
sendmail() function, i
Ervin Hegedüs added the comment:
Here is a workaround:
server.sendmail(mailfrom, rcptto, msg.encode("utf8"))
May be this would be better inside of smtplib?
--
___
Python tracker
<http://bugs.python.o
New submission from Ervin Hegedüs:
Looks like smtplib can send only messages, which contains only 7bit (ascii)
characters. Here is the example:
# -*- coding: utf8 -*-
import time
import smtplib
mailfrom = "m...@mydomain.com"
rcptto = "m...@otherdomain.com"
msg = "
Changes by Ervin Hegedüs :
--
nosy: airween
priority: normal
severity: normal
status: open
title: smtplib can't send 8bit encoded utf-8 message
type: behavior
versions: Python 3.4
___
Python tracker
<http://bugs.python.org/is