#14301: django crashes on email address that passed validate_email() (utf8-tld) ---------------------------------------+------------------------------------ Reporter: harm | Owner: nobody Status: reopened | Milestone: 1.3 Component: django.core.mail | Version: 1.2 Resolution: | Keywords: Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------+------------------------------------ Comment (by andialbrecht):
Maybe we need something like this in the SMTP backend: {{{ >>> email = u'f...@bär.com' >>> name, domain = email.split('@', 1) >>> email = '@'.join([name, domain.encode('idna')]) >>> email <<< u'f...@xn--br-eda5w.com' }}} But I'm not very familiar with IDN and the depths of SMTP, so this approach could be wrong. -- Ticket URL: <http://code.djangoproject.com/ticket/14301#comment:12> Django <http://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 post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.