#23490: Email send error: "See http://pobox.com/~djb/docs/smtplf.html" ------------------------------+------------------------------------ Reporter: maherma-adg | Owner: nobody Type: Bug | Status: new Component: Core (Mail) | Version: 1.6 Severity: Normal | Resolution: Keywords: email smtplf | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ------------------------------+------------------------------------ Changes (by aaugustin):
* stage: Unreviewed => Accepted Comment: The doc for [https://docs.python.org/3.4/library/email.generator.html#email.generator.Generator.flatten flatten] says: > Optional linesep specifies the line separator character used to terminate lines in the output. If specified it overrides the value specified by the msg's or Generator's policy. Since Django doesn't specify a policy, I believe we end up with [https://docs.python.org/3.4/library/email.policy.html#email.policy.default the default policy], which is documented to exhibit this bug. The proper fix is to switch to [https://docs.python.org/3.4/library/email.policy.html#email.policy.SMTP the SMTP policy]. The easiest way is to inject it when we instanciate the Generator. But I'm wondering if it wouldn't be safer to set it on the message, to avoid the same kind of bugs in other code paths. -- Ticket URL: <https://code.djangoproject.com/ticket/23490#comment:2> 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/069.48056ee6dbef1090dbdfceb2af11abac%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.
