Skip to content

Determining minimal content for password reset email template including {{ password_reset_url }} #4029

Closed Answered by thxtech
thxtech asked this question in Q&A
Discussion options

You must be logged in to vote

I've found a solution to this issue and would like to close this discussion. The problem was resolved by using {% autoescape off %} in the template. Here's the minimal working template:

{% autoescape off %}
{{ password_reset_url }}
{% endautoescape %}

This allows the password_reset_url to be rendered correctly without HTML escaping, which was likely the cause of the email delivery failures. Thank you for your attention to this matter.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thxtech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #4028 on August 13, 2024 05:42.