I have an email verification while registering, and the verify link must in the form of a hyperlink.
from django.core.mail import send_mail
from django.conf import settings
def send_email_verification_mail(email, first_name, verify_link, exp):
html = """
<a href="{link}">Click to verify</a>
"""
html.format(link=verify_link)
subject = 'Your accounts need to be verified'
message = f'Hi {first_name.capitalize()},\n\nClick on the link to verify your
account \n
\n{html}\n \nThis link will expire in {exp}'
email_from = settings.EMAIL_HOST_USER
recipient_list = [email]
send_mail(subject, message, email_from, recipient_list)
return True