mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
Fix SendGrid key ingestion
This commit is contained in:
parent
0221ea261f
commit
2d569a8050
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue