﻿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
17536	Filename encoding broken for attachments in EmailMessage class	alexey	nobody	"Message encoding broken if creating messages with EmailMessage class.

Test case:
{{{#!python
subject = u""Тест""
body = u""Тест""
recepients = [""test@test.com""]

filename = u""тест.txt""
report = ""some binary data""

email = EmailMessage(subject,body,to=recepients)
email.attach(filename.encode(""utf-8""),report)
email.send()
}}}

filename will NOT be properly encoded and pushed into the message ""as is"". And some email clients such as MS Outlook will show broken stuff instead of filename."	Bug	closed	Core (Mail)	dev	Normal	duplicate	EmailMessage, broken encoding, unicode, i18n		Unreviewed	0	0	0	0	0	0
