Commit e37b95ef authored by Cornee Traas's avatar Cornee Traas
Browse files

Enable smtp by default

parent c9fda0e6
......@@ -137,4 +137,4 @@ REST_FRAMEWORK = {
}
# EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
# EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
......@@ -74,7 +74,9 @@ class UserViewSet(ModelViewSet):
)
send_mail(
"Password Reset Request",
'<a href="' + link + '"> Click here to reset your password</a>',
'<html><body><a href="'
+ link
+ '"> Click here to reset your password</a></body></html>',
"noreply@" + request.get_host(),
[user.email],
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment