1
0
mirror of https://github.com/django/django.git synced 2025-04-24 09:14:39 +00:00
Florian Apolloner 7c674dd1f1 [1.6.x] Introduced as_bytes for SafeMIMEText (and other SafeMIME-classes).
This is to provide a consistent interface (namely bytes) for the smtp
backend which after all sends bytes over the wire; encoding with as_string
yields different results since mails as unicode are not really specified.

as_string stays for backwardscompatibilty mostly and some debug outputs.
But keep in mind that the output doesn't match as_bytes!

Backport of 5dfd824d38ec7d1f695494e46d603e89cae68661 from master.
2013-12-31 12:05:59 +01:00
..