#24416: EmailMessage and send_email do not handle ugettext_lazy translated
addresses correctly
-----------------------------+----------------------
     Reporter:  medmunds     |      Owner:  medmunds
         Type:  Bug          |     Status:  new
    Component:  Core (Mail)  |    Version:  1.7
     Severity:  Normal       |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+----------------------
 Most (all?) of the core email backends seem to have issues with lazy
 strings used as addresses: to, cc, etc.:

 {{{
 >>> from django.utils.translation import ugettext_lazy as _
 >>> from django.core.mail import send_mail
 >>> send_mail('Subject', 'Content', _('[email protected]'),
 [_('[email protected]')])
 ... TypeError: sequence item 0: expected str instance, __proxy__ found
 }}}

 (#7574 fixed this for subject and content, but not the address fields.)

 Patch coming shortly.

--
Ticket URL: <https://code.djangoproject.com/ticket/24416>
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/051.f0de4be4565a54925000117a225cef78%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to