lavr / python-emails

Modern python library for emails
http://python-emails.readthedocs.org
Other
400 stars 54 forks source link

Encode address names only when it's not ascii #126

Closed vgavro closed 5 years ago

vgavro commented 5 years ago

To, From fields are encoded always, not only when it's not ascii. This merge request fixes it.

alexmic commented 5 years ago

Encoding to unicode is actually causing Hotmail/Outlook to mark the emails as spam. I have tested by sending the same email via the stdlib email package which does not encode to unicode and it goes to inbox.

lavr commented 5 years ago

thank you for PR @vgavro ! decided to make an option headers_encoding with default 'ascii' fixed in #133