﻿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
29837	Allow email sending with a newline in the subject	Álex Córcoles	nobody	"Hi,

django.core.mail.send_mail raises an exception if the subject contains a newline.

We have hit this problem because we have a piece of code that parses an email using Python's libraries, extracts the subject and then re-sends an email with the same subject.

If this email has a multi-line subject (this seems to be common, I believe some bit in mail delivery code wordwraps headers), this code then fails unexpectedly.

This is extremely hard to detect before it happens, so we would humbly suggest that send_mail don't raise an error if passed a subject containing a newline, but rather sends the email doing the necessary security handling.

Kind regards,

Álex"	New feature	closed	Core (Mail)	2.1	Normal	wontfix			Unreviewed	0	0	0	0	0	0
