Tags showing in email

Sending an email and the html tag for the URL is showing.

{% load static %}

{% autoescape off %}
Hello {{ user.username }},

Please click the link below to activate your account:

{% block reset_link %}
<a href="http://{{ domain }}{% url 'activate' uidb64=uid token=token %}">Activate your account"></a>
{% endblock %}

{% endautoescape %}

Email

Hello gasgfgg,

Please click the link below to activate your account:

<a href="http://127.0.0.1:8000/accounts/activate/MTIw/bvnglz-21b1dc9189fdde038644cab2558433cb/">Activate your account"></a>

The code shows like this in email.

Are you sending a text email or an html email?

If you’re trying to send html email, see the html_message parameter in the send_mail method.

Worked. Thanks again.