#17193: Send templated email.
-----------------------------+-------------------------------------------
Reporter: tomchristie | Owner: julianapplebaum
Type: New feature | Status: new
Component: Core (Mail) | Version:
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------+-------------------------------------------
Comment (by carljm):
With the addition of the `html_message` parameter to `send_mail`, the
reasons for adding this have been reduced to:
1. Saving the need to type `render_to_string` two or three times.
2. Saving the need to collapse newlines in the rendered subject (though
I'm not actually sure off-hand what the consequence of failing to do that
is, would need to check).
That starts to look a bit thin as rationale, but it is a common enough
need that I'd probably still be at least +0 on adding it.
I think the naming-convention suggestion is probably a bit too implicit
for Django's usual API style; that's something probably better left to a
third-party solution.
So I think if we do this, the API should probably look something like what
Marc proposed.
--
Ticket URL: <https://code.djangoproject.com/ticket/17193#comment:32>
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.4ae569e6267d01cdf9a3799d75c90d27%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.