Skip to content

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
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

4 participants