mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-20 21:39:37 +02:00
Removing the single quotes allow SMTP to work -- it did not work otherwise. Also, [Google recommends TLS over SSL](https://support.google.com/a/answer/2520500?sjid=7564827219172741277-NA)
821 B
821 B
Change Email Backend
To change the email backend, you can set the following variable in your docker-compose.yml under the server service:
Using Console (default)
environment:
- EMAIL_BACKEND='console'
With SMTP
environment:
- EMAIL_BACKEND=email
- EMAIL_HOST=smtp.gmail.com
- EMAIL_USE_TLS=True
- EMAIL_PORT=587
- EMAIL_USE_SSL=False
- EMAIL_HOST_USER=user
- EMAIL_HOST_PASSWORD=password
- DEFAULT_FROM_EMAIL=user@example.com
Customizing Emails
By default, the email will display [example.com]
in the subject. You can customize this in the admin site.
- Go to the admin site (serverurl/admin)
- Click on
Sites
- Click on first site, it will probably be
example.com
- Change the
Domain name
andDisplay name
to your desired values - Click
Save