Skip to main content

SMTP

The SMTP notification provider sends HTML emails via an SMTP server. Supports TLS and optional authentication.

Configuration

Environment Variables

NOTIFIER__TYPE=smtp
NOTIFIER__SMTP__HOST=localhost
NOTIFIER__SMTP__PORT=1025
NOTIFIER__SMTP__USERNAME=root
NOTIFIER__SMTP__PASSWORD=root
[email protected]
NOTIFIER__SMTP__TLS_MODE=none
NOTIFIER__SMTP__SKIP_VERIFY_TLS=false

YAML Configuration

notifier:
type: smtp
smtp:
host: localhost
port: 1025
username: root
password: root
sender: [email protected]
tls_mode: none
skip_verify_tls: false
VariableDescriptionDefaultRequired
NOTIFIER__TYPENotification provider type-Yes
NOTIFIER__SMTP__HOSTSMTP server host-Yes
NOTIFIER__SMTP__PORTSMTP server port-Yes
NOTIFIER__SMTP__USERNAMESMTP username-No
NOTIFIER__SMTP__PASSWORDSMTP password-No
NOTIFIER__SMTP__SENDERFrom email address-Yes
NOTIFIER__SMTP__TLS_MODETLS connection mode (ssl, starttls, none)starttlsNo
NOTIFIER__SMTP__SKIP_VERIFY_TLSSkip TLS certificate verificationfalseNo
warning

SKIP_VERIFY_TLS disables certificate verification. Do not use in production.

Examples

Gmail

To use Gmail, you must generate an App Password in your Google Account settings. Standard account passwords will not work.

notifier:
type: smtp
smtp:
host: smtp.gmail.com
port: 587
username: your-[email protected]
password: your-16-digit-app-password
sender: your-[email protected]
tls_mode: starttls
skip_verify_tls: false