fixed email sending for html content type
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user