Skip to content

Extra context for email rendering and dynamic email from address #157

Open
@g3rb3n

Description

@g3rb3n

Is your feature request related to a problem? Please describe.
For sending mfa code emails in a multi Site setup. we need to be able to send mails with more context data, like site.name. The current implementation does not pass the request object to the backend which makes it impossible to use the request in rendering the email templates.

Describe the solution you'd like
Pass the request object to the backend. Allow for implementing get_context in subclass. Pass the extra context to the template rendering.

Describe alternatives you've considered
Write a separate backend for each site.

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions