Browse Source

#590: added email do default configuration

Rafał Pitoń 8 years ago
parent
commit
6ac136b30b
1 changed files with 24 additions and 0 deletions
  1. 24 0
      misago/project_template/project_name/settings.py

+ 24 - 0
misago/project_template/project_name/settings.py

@@ -120,6 +120,30 @@ STATICFILES_DIRS = (
 )
 
 
+# Email configuration
+# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#email-backend
+
+# The host to use for sending email.
+
+EMAIL_HOST = 'localhost'
+
+
+# Username to use for the SMTP server defined in EMAIL_HOST. If empty, Django won’t attempt authentication.
+
+EMAIL_HOST_USER = ''
+
+
+# Password to use for the SMTP server defined in EMAIL_HOST. This setting is used in conjunction with EMAIL_HOST_USER
+# when authenticating to the SMTP server. If either of these settings is empty, Django won’t attempt authentication.
+
+EMAIL_HOST_PASSWORD = ''
+
+
+# Default email address to use for various automated correspondence from the site manager(s).
+
+DEFAULT_FROM_EMAIL = 'Forums <%s>' % EMAIL_HOST_USER
+
+
 # Application definition
 
 AUTH_USER_MODEL = 'misago_users.User'