#23490: Email send error: "See http://pobox.com/~djb/docs/smtplf.html";
-----------------------------+--------------------------
     Reporter:  maherma-adg  |      Owner:  nobody
         Type:  Bug          |     Status:  new
    Component:  Python 3     |    Version:  1.6
     Severity:  Normal       |   Keywords:  email smtplf
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+--------------------------
 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.

--
Ticket URL: <https://code.djangoproject.com/ticket/23490>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.8cb765b4ad3ea27b125a65075a5e9e9f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to