Skip to content

Conversation

sebastianhaas
Copy link
Collaborator

Instead of a direct setting, the email subject can now be set using a template.

This is heavily inspired and pretty much copied from the way Django is rendering the email subject for its password reset links.

See https://github.com/django/django/blob/main/django/contrib/auth/templates/registration/password_reset_subject.txt
See https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.views.PasswordResetView.subject_template_name

This approach also allows for a i18n email subject, which is not really possible otherwise (gettext translations in settings will likely break email services).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant