#28196: Character Encoding on EmailMessage when sending
-------------------------------------+-------------------------------------
     Reporter:  Helmut               |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Mail)          |                  Version:  1.11
     Severity:  Normal               |               Resolution:
     Keywords:  emailmessage, send,  |             Triage Stage:
  email, unicode                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz):

 There's absolutely no reason to encode the content passed to
 `EmailMessage`, so even if it was not failing before, I would be against
 restoring the previous behavior.
 Nonetheless the EmailMessage `__init__` docstring talks about accepting
 UTF-8 bytestrings, which should be removed IMO.
 Unless someone comes with a compelling use case to allow bytestrings for
 `EmailMessage` subject and body. Binary content should be left for
 attachments.

--
Ticket URL: <https://code.djangoproject.com/ticket/28196#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.54270aee5ac7e1e8ef5d64066e5ed411%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to