Skip to Content
gentlemans-stack
ReferenceConnectors

smtp-email-connector

Source-only Nodemailer SMTP adapter. createSMTPEmailConnector(logger, config) verifies and closes an SMTP transport and exposes the small EmailClient contract consumed by libs/email.

API

This package owns only the Nodemailer dependency set.

  • createSMTPEmailConnector (config: SMTPEmailConfig): sends mail over SMTP.
  • Types: EmailClient, EmailDelivery, EmailMessage.

from in the config is the default sender and replyTo an optional default Reply-To. A message can set its own from (passed to Nodemailer only when given) or replyTo, which wins over the default.

Commands

pnpm nx run smtp-email-connector:typecheck   # type-check the package
pnpm nx run smtp-email-connector:test        # run the Vitest suite

On this page