Skip to content

Commit

Permalink
fix: fix wrong env variable for server email address
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Jan 6, 2023
1 parent b297931 commit d1006b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Users of nginx/apache must ensure to have matching CORS configurations.

## Email error handler
* `ENABLE_ADMIN_EMAIL_LOGGING`: enable Django to send email to admins on errors (default: `False`)
* `SERVER_MAIL`: the email address that error messages come from
* `SERVER_EMAIL`: the email address that error messages come from
* `EMAIL_HOST`: the host to use for sending email (default: `localhost`)
* `EMAIL_PORT`: port to use for the SMTP server (default: `25`)
* `EMAIL_HOST_USER`: username for the SMTP server(default: "")
Expand Down
2 changes: 1 addition & 1 deletion document_merge_service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def parse_admins(admins):
# Email settings
if ENABLE_ADMIN_EMAIL_LOGGING: # pragma: no cover
LOGGING["loggers"]["django"]["handlers"].append("mail_admins") # type: ignore
SERVER_MAIL = env.str("SERVER_MAIL", default="root@localhost")
SERVER_EMAIL = env.str("SERVER_EMAIL", default="root@localhost")
EMAIL_HOST = env.str("EMAIL_HOST", default="localhost")
EMAIL_PORT = env.int("EMAIL_PORT", default=25)
EMAIL_HOST_USER = env.str("EMAIL_HOST_USER", default="")
Expand Down

0 comments on commit d1006b9

Please sign in to comment.