famu xu added the comment:
import smtplib
from email.message import EmailMessage
from email.utils import formataddr
server = smtplib.SMTP('smtp.xxx.com',port=25)
server.login('y...@xxx.com', 'password')
msg = EmailMessage()
#if address username include Chinese or
famu xu added the comment:
python 3.7 same
--
___
Python tracker
<https://bugs.python.org/issue37572>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from famu xu :
file: email\_header_value_parser.py
line : encoded_part = part.fold(policy=policy)[:-1] # strip nl
modify to: encoded_part = part.fold(policy=policy)[:-2] # strip nl
because the nl is "\r\n"
--
components: email
messages: 347740
nosy: barr