diff --git a/takahe/settings.py b/takahe/settings.py index 8b62206..20f89b4 100644 --- a/takahe/settings.py +++ b/takahe/settings.py @@ -272,7 +272,8 @@ if SETUP.EMAIL_SERVER: EMAIL_HOST = "smtp.sendgrid.net" EMAIL_PORT = 587 EMAIL_HOST_USER = "apikey" - EMAIL_HOST_PASSWORD = parsed.hostname + # urlparse will lowercase it + EMAIL_HOST_PASSWORD = SETUP.EMAIL_SERVER.split("://")[1] EMAIL_USE_TLS = True elif parsed.scheme == "smtp": EMAIL_HOST = parsed.hostname