#23063: send email 1.6.5 OK, 1.7c1 malformed packet in wireshark
-------------------------------------+-------------------------------------
Reporter: contact@… | Owner: nobody
Type: Bug | Status: new
Component: Core (Mail) | Version: 1.7
Severity: Normal | Resolution:
Keywords: send_mail, smtp, | Triage Stage:
malformed, packet | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by ainslied):
Editing django\core\mail\backends\smtp.py line 115 :
{{{
message.as_bytes() -> message.as_string()
}}}
solved the problem.
Now the message seems to respect the "IMF" (internet message format)
standards. Wireshark doesn't tag the packet as Malformed and the provider
ovh accepts the message and the message is well sended.
In the doc of python, as_string() is used as well..
(see https://docs.python.org/2/library/email-examples.html )
Is there a reason why using as_bytes() here?
--
Ticket URL: <https://code.djangoproject.com/ticket/23063#comment:15>
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/077.336c2fffeb692bf79885b369ade7d3c6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.