1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-11 16:01:20 +00:00

added correct spelling for smtp env var

This commit is contained in:
Fon E. Noel Nfebe 2021-05-19 14:18:16 +00:00 committed by Bram Wiepjes
parent 90ed295d13
commit 724558ff2d
4 changed files with 15 additions and 5 deletions
backend/src/baserow/config/settings
docker-compose.yml
docs
getting-started
reference

View file

@ -245,7 +245,11 @@ EMAIL_BACKEND = "djcelery_email.backends.CeleryEmailBackend"
if os.getenv("EMAIL_SMTP", ""):
CELERY_EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_USE_TLS = bool(os.getenv("EMAIL_SMPT_USE_TLS", ""))
# EMAIL_SMTP_USE_TLS OR EMAIL_SMTP_USE_TLS for backwards compatibilty after
# fixing #448.
EMAIL_USE_TLS = bool(os.getenv("EMAIL_SMTP_USE_TLS", "")) or bool(
os.getenv("EMAIL_SMPT_USE_TLS", "")
)
EMAIL_HOST = os.getenv("EMAIL_SMTP_HOST", "localhost")
EMAIL_PORT = os.getenv("EMAIL_SMTP_PORT", "25")
EMAIL_HOST_USER = os.getenv("EMAIL_SMTP_USER", "")

View file

@ -52,7 +52,7 @@ services:
- EMAIL_SMTP
- EMAIL_SMTP_HOST
- EMAIL_SMTP_PORT
- EMAIL_SMPT_USE_TLS
- EMAIL_SMTP_USE_TLS
- EMAIL_SMTP_USER
- EMAIL_SMTP_PASSWORD
- FROM_EMAIL
@ -82,7 +82,7 @@ services:
- EMAIL_SMTP
- EMAIL_SMTP_HOST
- EMAIL_SMTP_PORT
- EMAIL_SMPT_USE_TLS
- EMAIL_SMTP_USE_TLS
- EMAIL_SMTP_USER
- EMAIL_SMTP_PASSWORD
- FROM_EMAIL

View file

@ -122,8 +122,14 @@ are accepted.
* `EMAIL_SMTP` (default ``): Providing anything other than an empty string will enable
SMTP email.
* `EMAIL_SMTP_HOST` (default `localhost`): The hostname of the SMTP server.
* `EMAIL_SMPT_USE_TLS` (default ``): Providing anything other than an empty string will
* `EMAIL_SMTP_USE_TLS` (default ``): Providing anything other than an empty string will
enable connecting to the SMTP server via TLS.
* `EMAIL_SMPT_USE_TLS` (default ``): `EMAIL_SMTP_USE_TLS` from above was initially
wrongly spelled as `EMAIL_SMPT_USE_TLS`. This issue has since been addressed in
[#247](https://gitlab.com/bramw/baserow/-/merge_requests/247). However,
`EMAIL_SMPT_USE_TLS` is still supported for those who might still be using it in
their environment. It's highly recommended you use the correct var name if working
with the latest version as this support might be removed in the future.
* `EMAIL_SMTP_PORT` (default `25`): The port of the SMTP server.
* `EMAIL_SMTP_USER` (default ``): The username for the SMTP server.
* `EMAIL_SMTP_PASSWORD` (default ``): The password of the SMTP server.

View file

@ -137,7 +137,7 @@ for what these variables do.
- `EMAIL_SMTP`
- `EMAIL_SMTP_HOST`
- `EMAIL_SMTP_PORT`
- `EMAIL_SMPT_USE_TLS`
- `EMAIL_SMTP_USE_TLS`
- `EMAIL_SMTP_USER`
- `EMAIL_SMTP_PASSWORD`
- `FROM_EMAIL`