Skip to content

Commit

Permalink
Improve the configuration for email settings (#190).
Browse files Browse the repository at this point in the history
  • Loading branch information
genglert committed Apr 14, 2021
1 parent d1a9a2d commit ce6f947
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Users side :
------------
# The documentation of the the settings for (internal) emails has been improved (#190).
# Apps :
* Creme_config :
- In Buttons configuration :
Expand Down
28 changes: 22 additions & 6 deletions creme/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,18 +349,34 @@

# Emails sent to the users of Creme
# (reminders, assistants.user_message, commercial.commercial_approach...)

# This is a Creme parameter which specifies from_email (sender) when sending email.
EMAIL_SENDER = '[email protected]'
EMAIL_HOST = 'localhost'
EMAIL_HOST_USER = ''
EMAIL_SENDER = '[email protected]'

# Following values are from Django :
# See https://docs.djangoproject.com/en/2.2/ref/settings/#email-host
# or the file "django/conf/global_settings.py"
# for a complete documentation.
# BEWARE: the Django's names for secure parameters may be misleading.
# EMAIL_USE_TLS is for startTLS (often with port 587) ; for communication
# with TLS use EMAIL_USE_SSL. See :
# - https://docs.djangoproject.com/fr/2.2/ref/settings/#email-use-tls
# - https://docs.djangoproject.com/fr/2.2/ref/settings/#email-use-ssl
EMAIL_HOST = 'localhost'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
# EMAIL_PORT = 1025 # Default value in django/conf/global_settings.py
EMAIL_USE_TLS = False
# EMAIL_PORT = 25
# EMAIL_SSL_CERTFILE = None
# EMAIL_SSL_KEYFILE = None
# EMAIL_TIMEOUT = None
# ...

# Tip: _development_ SMTP server
# => python -m smtpd -n -c DebuggingServer localhost:1025

DEFAULT_USER_EMAIL = '' # Email address used in case the user doesn't have filled his one.
# Email address used in case the user doesn't have filled his one.
DEFAULT_USER_EMAIL = ''


# EMAILS [END] #################################################################
Expand Down

0 comments on commit ce6f947

Please sign in to comment.