Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update email configs 🎁 #504

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/simmate/configuration/django/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@
# 3. Adding an App Password (in account settings)
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" # this is the default
EMAIL_HOST = os.environ.get("EMAIL_HOST", "smtp.gmail.com") # or outlook.office365.com
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = os.environ.get("EMAIL_USER", "[email protected]")
EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_PASSWORD", None)
DEFAULT_FROM_EMAIL = os.environ.get("EMAIL_FROM", EMAIL_HOST_USER)
EMAIL_PORT = int(os.environ.get("EMAIL_PORT", 587))
EMAIL_USE_TLS = os.environ.get("EMAIL_USE_TLS", False) == "True"
EMAIL_HOST_USER = os.environ.get("EMAIL_USER", "")
EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_PASSWORD", "")
DEFAULT_FROM_EMAIL = os.environ.get("EMAIL_FROM", "[email protected]")
EMAIL_SUBJECT_PREFIX = "[Simmate] "
EMAIL_TIMEOUT = os.environ.get("EMAIL_TIMEOUT", 2)
EMAIL_TIMEOUT = int(os.environ.get("EMAIL_TIMEOUT", 5))

# These people get an email when DEBUG=False
ADMINS = [
Expand Down
Loading