Skip to content

Commit

Permalink
Merge pull request #5112 from open-formulieren/hotfix/adding_env_var_…
Browse files Browse the repository at this point in the history
…mail_timelimit

Adding email timeout env variable
  • Loading branch information
sergei-maertens authored Feb 26, 2025
2 parents 2c8d8a9 + 304fc12 commit 43c6df6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ Email settings
* ``DEFAULT_FROM_EMAIL``: The email address to use a default sender. Defaults
to ``openforms@example.com``.

* ``EMAIL_TIMEOUT``: How long to wait for blocking operations like the connection attempt, in seconds. Defaults to ``10``.

.. _installation_config_cors:

Cross-Origin Resource Sharing (CORS) settings
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
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
EMAIL_TIMEOUT = config("EMAIL_TIMEOUT", default=10)

DEFAULT_FROM_EMAIL = config("DEFAULT_FROM_EMAIL", "openforms@example.com")

Expand Down

0 comments on commit 43c6df6

Please sign in to comment.