Skip to content

Latest commit

 

History

History
73 lines (58 loc) · 1.67 KB

smtp_configuration.md

File metadata and controls

73 lines (58 loc) · 1.67 KB

SMTP Configuration

Following is a list of all possible configuration variables.

SMTP_ADDRESS=smtp.yourhost.com
SMTP_EMAIL_FROM="[email protected]"
SMTP_EMAIL_TO="[email protected]"
SMTP_PORT=587
SMTP_DOMAIN=smtp.yourhost.com
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_USERNAME=ciao
SMTP_PASSWORD="sensitive_password"
SMTP_SSL=true

Notes

  • When SMTP_ADDRESS variable is not set no e-mail notifications are sent
  • You can send emails to several addresses by separating them with a comma eg. SMTP_EMAIL_TO="[email protected],[email protected]"

Example configurations

Gmail

Don’t forget to change [email protected] to your email address and sensitive_password to your own password.

If you encounter authentication errors, ensure you have allowed less secure apps to access the account.

SMTP_ADDRESS=smtp.gmail.com
SMTP_EMAIL_FROM="[email protected]"
SMTP_EMAIL_TO="[email protected]"
SMTP_PORT=587
SMTP_DOMAIN=smtp.yourhost.com
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_USERNAME="[email protected]"
SMTP_PASSWORD="sensitive_password"

Sendgrid

Port 587 (STARTTLS)

SMTP_ADDRESS=smtp.sendgrid.net
SMTP_EMAIL_FROM="[email protected]"
SMTP_EMAIL_TO="[email protected]"
SMTP_PORT=587
SMTP_DOMAIN=smtp.yourhost.com
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_USERNAME=ciao
SMTP_PASSWORD="sensitive_password"

Port 465 (explicit SSL/TLS)

SMTP_ADDRESS=smtp.sendgrid.net
SMTP_EMAIL_FROM="[email protected]"
SMTP_EMAIL_TO="[email protected]"
SMTP_PORT=465
SMTP_DOMAIN=smtp.yourhost.com
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_USERNAME=ciao
SMTP_PASSWORD="sensitive_password"
SMTP_SSL=true