#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 | ---------------------------------------+------------------------------------ Changes (by philomat):
* status: closed => reopened * resolution: fixed => Comment: While one part of the problem is fixed, the SMTP backend still needs to be fixed since it is not expecting non-ASCII characters. {{{ File "/Sites/vendor/Django-1.3-alpha-1/django/core/mail/__init__.py", line 61, in send_mail connection=connection).send() File "/Sites/vendor/Django-1.3-alpha-1/django/core/mail/message.py", line 186, in send return self.get_connection(fail_silently).send_messages([self]) File "/Sites/vendor/Django-1.3-alpha-1/django/core/mail/backends/smtp.py", line 85, in send_messages sent = self._send(message) File "/Sites/vendor/Django-1.3-alpha-1/django/core/mail/backends/smtp.py", line 101, in _send email_message.message().as_string()) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/smtplib.py", line 703, in sendmail (code,resp)=self.rcpt(each, rcpt_options) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/smtplib.py", line 457, in rcpt self.putcmd("rcpt","TO:%s%s" % (quoteaddr(recip),optionlist)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/smtplib.py", line 318, in putcmd self.send(str) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/smtplib.py", line 305, in send self.sock.sendall(str) File "<string>", line 1, in sendall UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 16: ordinal not in range(128) }}} -- Ticket URL: <http://code.djangoproject.com/ticket/14301#comment:9> 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.