New submission from Blame-me Jaillie <darkshado.1...@gmail.com>: Apologies if this is in the wrong place.
Simple enough issue. This line of code from email.mime: MIMEText(textonly, 'plain', _charset='UTF-8') Where 'textonly' is just a plain text email message to be displayed on a multipart message in a client that does not support HTML email. This always results in: Content-Transfer-Encoding: BASE64 rather than allowing selection of the encoder (7 or 8 bit MIME/quoted printable). The option to set this with _encoders was removed. This presents a couple of issues. First of all, BASE64 is not optimal for text - it adds (granted small) amounts of overhead and CPU usage. Second, commercial and O/S anti-spam scanners have rules that penalise messages solely BASE64 encoded. As this is part of the mime email package, a simple flag to set the Content-Transfer-Encoding by hand would be help anyone trying to produce sensible email applications with Python. Whilst my version of Python is old - I believe this issue remains in later versions. ---------- components: None messages: 140259 nosy: Blame-me.Jaillie priority: normal severity: normal status: open title: email.MIMEText overide BASE64 on TEXT/HTML type: feature request versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12552> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com