File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -767,6 +767,14 @@ class REDIS_INMEM_DATABASES(IntEnum):
767767# to check configuration and throw ImproperlyConfigured if thats a case
768768EMAIL_BACKEND = os .getenv ('EMAIL_BACKEND' , None )
769769
770+ if EMAIL_BACKEND == 'django.core.mail.backends.smtp.EmailBackend' :
771+ EMAIL_HOST = os .getenv ('EMAIL_HOST' , 'localhost' )
772+ EMAIL_PORT = int (os .getenv ('EMAIL_PORT' , 25 ))
773+ EMAIL_USE_TLS = to_bool (os .getenv ('EMAIL_USE_TLS' , False ))
774+ EMAIL_HOST_USER = os .getenv ('EMAIL_HOST_USER' , '' )
775+ EMAIL_HOST_PASSWORD = os .getenv ('EMAIL_HOST_PASSWORD' , '' )
776+ DEFAULT_FROM_EMAIL = os .getenv ('DEFAULT_FROM_EMAIL' , 'webmaster@localhost' )
777+
770778ONE_RUNNING_JOB_IN_QUEUE_PER_USER = to_bool (os .getenv ("ONE_RUNNING_JOB_IN_QUEUE_PER_USER" , False ))
771779
772780# How many chunks can be prepared simultaneously during task creation in case the cache is not used
You can’t perform that action at this time.
0 commit comments