mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #1505 from eeintech/email_reset
Enabled default email sender setting
This commit is contained in:
commit
c5b6e22a58
@ -512,8 +512,8 @@ EXCHANGE_BACKEND = 'InvenTree.exchange.InvenTreeManualExchangeBackend'
|
|||||||
email_config = CONFIG.get('email', {})
|
email_config = CONFIG.get('email', {})
|
||||||
|
|
||||||
EMAIL_BACKEND = get_setting(
|
EMAIL_BACKEND = get_setting(
|
||||||
'django.core.mail.backends.smtp.EmailBackend',
|
'INVENTREE_EMAIL_BACKEND',
|
||||||
email_config.get('backend', '')
|
email_config.get('backend', 'django.core.mail.backends.smtp.EmailBackend')
|
||||||
)
|
)
|
||||||
|
|
||||||
# Email backend settings
|
# Email backend settings
|
||||||
@ -537,6 +537,11 @@ EMAIL_HOST_PASSWORD = get_setting(
|
|||||||
email_config.get('password', ''),
|
email_config.get('password', ''),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
DEFAULT_FROM_EMAIL = get_setting(
|
||||||
|
'INVENTREE_EMAIL_SENDER',
|
||||||
|
email_config.get('sender', ''),
|
||||||
|
)
|
||||||
|
|
||||||
EMAIL_SUBJECT_PREFIX = '[InvenTree] '
|
EMAIL_SUBJECT_PREFIX = '[InvenTree] '
|
||||||
|
|
||||||
EMAIL_USE_LOCALTIME = False
|
EMAIL_USE_LOCALTIME = False
|
||||||
|
@ -85,6 +85,7 @@ email:
|
|||||||
port: 25
|
port: 25
|
||||||
username: ''
|
username: ''
|
||||||
password: ''
|
password: ''
|
||||||
|
sender: ''
|
||||||
tls: False
|
tls: False
|
||||||
ssl: False
|
ssl: False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user