﻿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
23490	"Email send error: ""See http://pobox.com/~djb/docs/smtplf.html"""	maherma-adg	nobody	"I found a bug sending multipart emails from django 1.6 (over python3) when target mail server is QMail. 

The received error is ""451, See http://pobox.com/~djb/docs/smtplf.html""

Tracing code show me that multipart encode data is generated with ""\n"" line separator which violate email specifications.

Test enviroment:
OSX 10.9.4
Django 1.6.6
Python 3.4.1
Mail server: QMail

You can fix this issue modifing this line in file /core/mail/message.py:153

`-` g.flatten(self, unixfrom=unixfrom)
+ g.flatten(self, unixfrom=unixfrom, linesep = '\r\n')

This modification replace lineseparator in multipart data from \n to \r\n allowing mails to be sent.

This is not a permanent fix but can be a starting point.

Manuel."	Bug	closed	Core (Mail)	1.6	Normal	duplicate	email smtplf		Accepted	0	0	0	0	0	0
