Skip to content

Commit

Permalink
Merge pull request #366 from sjoerdie/feature/email
Browse files Browse the repository at this point in the history
Add email environment variables
  • Loading branch information
sjoerdie authored Feb 26, 2024
2 parents 245b879 + 9b24977 commit 1b9b789
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/objects/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@

FIXTURE_DIRS = (os.path.join(DJANGO_PROJECT_DIR, "fixtures"),)

DEFAULT_FROM_EMAIL = "[email protected]"
EMAIL_TIMEOUT = 10

LOGGING_DIR = os.path.join(BASE_DIR, "log")

LOGGING = {
Expand Down Expand Up @@ -366,6 +363,20 @@
"REMOTE_ADDR",
)

#
# Sending EMAIL
#
EMAIL_HOST = config("EMAIL_HOST", default="localhost")
EMAIL_PORT = config(
"EMAIL_PORT", default=25
) # disabled on Google Cloud, use 487 instead
EMAIL_HOST_USER = config("EMAIL_HOST_USER", default="")
EMAIL_HOST_PASSWORD = config("EMAIL_HOST_PASSWORD", default="")
EMAIL_USE_TLS = config("EMAIL_USE_TLS", default=False)
EMAIL_TIMEOUT = 10

DEFAULT_FROM_EMAIL = config("DEFAULT_FROM_EMAIL", "[email protected]")

# Sentry SDK
SENTRY_DSN = config("SENTRY_DSN", None)

Expand Down

0 comments on commit 1b9b789

Please sign in to comment.