#17193: Send templated email.
-------------------------------------+-------------------------------------
Reporter: tomchristie | Owner:
Type: New feature | julianapplebaum
Component: Core (Mail) | Status: assigned
Severity: Normal | Version:
Keywords: | Resolution:
Has patch: 1 | Triage Stage: Design
Needs tests: 0 | decision needed
Easy pickings: 0 | Needs documentation: 0
| Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by julien):
* stage: Accepted => Design decision needed
Comment:
Thank you all for your great work on this patch. However, I'm struggling a
bit to see the value of adding this much new code for something that is
already quite easily achievable using `render_to_string()` and separate
templates.
I do agree that creating html+plain emails is still a little too hard in
Django, but in my opinion this could be simplified by introducing a new
helper class wrapping around `EmailMultiAlternatives` and providing a
simpler API and sensible defaults. For example, something like:
`HTMLEmailMessage(body_plain='...', body_html='...')`
In any case, I personally think that any template rendering should be left
to the user to do separately (for example by using `render_to_string()`).
For now I'm marking this ticket as DDN instead of wontfixing so that more
discussion can occur.
--
Ticket URL: <https://code.djangoproject.com/ticket/17193#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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.