fixed email sending for html content type

This commit is contained in:
Sam
2021-03-12 13:45:36 +00:00
parent ffb39ba62f
commit 5da01b318e
4 changed files with 9 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ def send_verification_email(request, user):
email = EmailMessage(
subject, message, to=[user.email]
)
email.content_subtype = "html"
email.send()
logging.info(f"Verification email sent to {user.email}")
except Exception as e: