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 Russell Keith-Magee, 15 years ago

Triage Stage: UnreviewedAccepted

Agreed with the use case, but the right solution would be to make the mail sending a configurable part of the PasswordResetForm.

comment:2 by Matt McClanahan, 14 years ago

Severity: Normal
Type: New feature

comment:3 by Thejaswi Puthraya, 13 years ago

Component: UncategorizedGeneric views
Easy pickings: unset
UI/UX: unset

comment:4 by Aymeric Augustin, 13 years ago

Resolution: duplicate
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top