Skip to content

SMTP Email ​

AdventureLog sends email for invitations, password resets, email verification, and @mention notifications in comments. Until you set up SMTP, it only writes these emails to the backend log.

Turn on SMTP ​

Add these settings to your env file (.env for Standard Deployment, .env.advanced for Advanced), then restart.

env
EMAIL_BACKEND=email
EMAIL_HOST=smtp.example.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_USE_SSL=False
EMAIL_HOST_USER=adventurelog@example.com
EMAIL_HOST_PASSWORD=your_smtp_password
DEFAULT_FROM_EMAIL=adventurelog@example.com
yaml
environment:
  - EMAIL_BACKEND=email
  - EMAIL_HOST=smtp.example.com
  - EMAIL_PORT=587
  - EMAIL_USE_TLS=True
  - EMAIL_USE_SSL=False
  - EMAIL_HOST_USER=adventurelog@example.com
  - EMAIL_HOST_PASSWORD=your_smtp_password
  - DEFAULT_FROM_EMAIL=adventurelog@example.com
VariableDefaultDescription
EMAIL_BACKENDconsoleconsole writes emails to the log. Any other value, such as email, sends them over SMTP.
EMAIL_HOSTnoneYour SMTP server
EMAIL_PORT587Usually 587 with TLS, or 465 with SSL
EMAIL_USE_TLSTrueUse STARTTLS. Turn off when using SSL.
EMAIL_USE_SSLFalseUse SSL from the start of the connection, usually on port 465
EMAIL_HOST_USER, EMAIL_HOST_PASSWORDnoneSMTP login. Many providers need an app password.
DEFAULT_FROM_EMAILnoneThe sender address. Many providers only accept an address you own.

Set the site name in emails ​

Emails show the site name in the subject, such as [example.com], until you change it:

  1. Open the Admin Panel.
  2. Go to Sites and open the first site, usually example.com.
  3. Set Domain name and Display name, for example adventurelog.example.com and AdventureLog.
  4. Save.

Check it works ​

Invite yourself from the admin panel (see Invite a User), or use Forgot password on the login page. If nothing arrives, look for SMTP errors in the backend log.