mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-14 16:29:57 +00:00
Update email docs (#10966)
* Map shorthand email backends * Revert settings changes * Update email docs * Tweak docs
This commit is contained in:
@@ -342,6 +342,10 @@ The following email settings are available:
|
|||||||
| INVENTREE_EMAIL_SENDER | email.sender | Sending email address | *Not specified* |
|
| INVENTREE_EMAIL_SENDER | email.sender | Sending email address | *Not specified* |
|
||||||
| INVENTREE_EMAIL_PREFIX | email.prefix | Prefix for subject text | [InvenTree] |
|
| INVENTREE_EMAIL_PREFIX | email.prefix | Prefix for subject text | [InvenTree] |
|
||||||
|
|
||||||
|
### Email Backend
|
||||||
|
|
||||||
|
The default email implementation uses the Django STMP backend. This should be sufficient for most implementations, although other backends can be used if required. Note that selection of a different backend requires must use fully qualified module path, and requires advanced knowledge.
|
||||||
|
|
||||||
### Sender Email
|
### Sender Email
|
||||||
|
|
||||||
The "sender" email address is the address from which InvenTree emails are sent (by default) and must be specified for outgoing emails to function:
|
The "sender" email address is the address from which InvenTree emails are sent (by default) and must be specified for outgoing emails to function:
|
||||||
|
|||||||
@@ -1017,11 +1017,13 @@ EXCHANGE_BACKEND = 'InvenTree.exchange.InvenTreeExchange'
|
|||||||
# region email
|
# region email
|
||||||
# Email configuration options
|
# Email configuration options
|
||||||
EMAIL_BACKEND = 'InvenTree.backends.InvenTreeMailLoggingBackend'
|
EMAIL_BACKEND = 'InvenTree.backends.InvenTreeMailLoggingBackend'
|
||||||
|
|
||||||
INTERNAL_EMAIL_BACKEND = get_setting(
|
INTERNAL_EMAIL_BACKEND = get_setting(
|
||||||
'INVENTREE_EMAIL_BACKEND',
|
'INVENTREE_EMAIL_BACKEND',
|
||||||
'email.backend',
|
'email.backend',
|
||||||
'django.core.mail.backends.smtp.EmailBackend',
|
'django.core.mail.backends.smtp.EmailBackend',
|
||||||
)
|
)
|
||||||
|
|
||||||
# SMTP backend
|
# SMTP backend
|
||||||
EMAIL_HOST = get_setting('INVENTREE_EMAIL_HOST', 'email.host', '')
|
EMAIL_HOST = get_setting('INVENTREE_EMAIL_HOST', 'email.host', '')
|
||||||
EMAIL_PORT = get_setting('INVENTREE_EMAIL_PORT', 'email.port', 25, typecast=int)
|
EMAIL_PORT = get_setting('INVENTREE_EMAIL_PORT', 'email.port', 25, typecast=int)
|
||||||
|
|||||||
Reference in New Issue
Block a user