Skip to content

Interface: SmtpConfig

SMTP connection + credentials. All fields fall back to env when unset.

optional host?: string

SMTP server hostname (SMTP_HOST).


optional password?: string

SMTP auth password / API key (SMTP_PASSWORD).


optional port?: number

SMTP server port (SMTP_PORT). Defaults to DEFAULT_SMTP_PORT.


optional secure?: boolean

Use a TLS-on-connect socket (SMTP_SECURE). Defaults to port === IMPLICIT_TLS_SMTP_PORT.


optional user?: string

SMTP auth username (SMTP_USER).