Opened 15 years ago
Closed 13 years ago
#12684 closed New feature (duplicate)
Have callback for email creation in generic views sending emails
Reported by: | Alexandre Garnier | Owned by: | nobody |
---|---|---|---|
Component: | Generic views | Version: | 1.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'd like to use EmailMultiAlternatives mails for my mails to have multipart with text & HTML (for nice looking mails but with simple text support).
But with generic views (and forms) like django.contrib.auth.views.password_reset, I can only give an email_template_name.
It would be nice to have a create_email callback to let me create the Email object that the view send.
Change History (4)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:3 by , 14 years ago
Component: | Uncategorized → Generic views |
---|---|
Easy pickings: | unset |
UI/UX: | unset |
comment:4 by , 13 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
The generic views don't send email — there's a confusion somewhere.
The concrete problem you're describing is tracked in #17431, with a more detailed description.
Agreed with the use case, but the right solution would be to make the mail sending a configurable part of the PasswordResetForm.