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

adds EMAIL_HOST, EMAIL_PORT if outgoing email is enabled. #776

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gilzow
Copy link
Contributor

@gilzow gilzow commented Apr 22, 2024

Description

adds EMAIL_HOST, EMAIL_PORT to settings.py if outgoing email is enabled for the environment.
Closes #774

Related Issue

#744

Please drop a link to the issue here:

#774

@gilzow gilzow requested a review from chadwcarlson April 22, 2024 20:18
@gilzow gilzow self-assigned this Apr 22, 2024
@@ -159,6 +159,9 @@ def decode(variable):
STATIC_ROOT = os.path.join(os.getenv('PLATFORM_APP_DIR'), 'static')
if (os.getenv('PLATFORM_PROJECT_ENTROPY') is not None):
SECRET_KEY = os.getenv('PLATFORM_PROJECT_ENTROPY')
if (os.getenv('PLATFORM_SMTP_HOST') is not None):
EMAIL_HOST = os.getenv("PLATFORM_SMTP_HOST")
EMAIL_PORT = 25

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess for local dev one should then modify the code accordingly

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lsmith77 Is that alright for you? Does it work to recommend that a user mock this variable locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add email configuration
3 participants