#29837: Allow email sending with a newline in the subject
-------------------------------+--------------------------------------
Reporter: Álex Córcoles | Owner: nobody
Type: New feature | Status: new
Component: Core (Mail) | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by Álex Córcoles):
Oh, the exception itself is quite clear:
https://github.com/django/django/blob/master/django/core/mail/message.py#L60
; it doesn't provide a rationale, but I don't think an exception should do
that- so I wouldn't really touch that, it's perfect as it stands.
I'd suggest documenting this behavior clearly in the docs (the docs hint
that it can throw SMTPExceptions, but this is a ValueError). I'd rather
join newlines, but if you guys decide this is good as it stands, I have
nothing more to say.
Thanks for your time,
Álex
--
Ticket URL: <https://code.djangoproject.com/ticket/29837#comment:5>
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/065.6d74d30f59e212068944a7cf4b3b6a94%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.