Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email subject template instead of hardcoded string #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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