Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add SMTP email server configuration example to production installation docs
Calvin Walden601bad468cd4
diff --git a/docs/production.rst b/docs/production.rstindex 450972ba1..2b0ab275f 100644--- a/docs/production.rst+++ b/docs/production.rst@@ -141,6 +141,28 @@ want to change the password as soon as you log in):* **username**: admin* **password**: adminadmin+.. _email:++-----++The application is configured to use Django's console email backend by default, which causes messages intended to be sent via email to be written to ``stdout``.++In order to use a real email server, another backend listed in `Django's documentation`_ can be configured instead. Parameters for the backend are set as variables in ``settings.py``. For example, the following allows an SMTP server at ``smtp.example.com`` to be used::++ Email_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'+ ENABLE_EMAIL = True+ EMAIL_HOST = 'smtp.example.com'+ EMAIL_PORT = 587+ EMAIL_HOST_USER = '[email protected]'+ EMAIL_HOST_PASSWORD = 'example_password'+ EMAIL_USE_TLS = True+ EMAIL_USE_SSL = False+ DEFAULT_FROM_EMAIL = 'wger Workout Manager <[email protected]>'++Email settings can be tested using the password reset function in the login page, provided an account with an email address has been created.++.. _`Django's documentation`: https://docs.djangoproject.com/en/dev/topics/email/#email-backends.. _other-changes: