﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11934	UnicodeDecodeError while sending an e-mail	Goldan	nobody	"When I'm trying to send an e-mail using django.core.mail.send_mail function, I get the following error:

!DjangoUnicodeDecodeError: 'utf8' codec can't decode bytes in position 27-28: invalid data. You passed in '<20090923114122.7992.11505@\xc4\xe5\xed\xe8\xf1-\xcf\x
ca.ipib.msu.ru>' (<type 'str'>)

Let us consider these lines in django/core/mail.py:

65    idhost = DNS_NAME

66    msgid = '<%s.%s.%s%s@%s>' % (utcdate, pid, randint, idstring, idhost)

When I replace line 65 with

65    idhost = 'example'

e-mails are sent successfully.

So the problem seems to be that my DNS_NAME contains non-ascii characters.
Hope it will be fixed. Thanks in advance."		closed	Core (Mail)	dev		duplicate		denis.golomazov@…	Unreviewed	0	0	0	0	0	0
