Skip to content

Commit

Permalink
Configure anymail
Browse files Browse the repository at this point in the history
  • Loading branch information
williammck committed Jun 20, 2024
1 parent 62dbea8 commit 67379f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zhu_core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@

# Email configuration

EMAIL_BACKEND = os.getenv("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend")

if DEBUG:
# Logs all emails to stdout for development.
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
Expand All @@ -251,6 +253,10 @@

EMAIL_USE_TLS = os.getenv("EMAIL_USE_TLS")

ANYMAIL = {
"MAILGUN_API_KEY": os.getenv("MAILGUN_API_KEY"),
}


# Miscellaneous

Expand Down

0 comments on commit 67379f3

Please sign in to comment.