@btravstack/mailer / smtp
smtp
Functions
smtpMailer()
ts
function smtpMailer(): Module<MailerBackend | HealthChecks, ConfigInvalid, EnvReading<"SMTP_URL", never> | Scope>;Defined in: packages/mailer/src/smtp.ts:110
The SMTP adapter: one pooled transport, opened with the scope and closed with it, and MailerBackend over it. nodemailer is an optional peer reached only through this subpath.
Returns
Module<MailerBackend | HealthChecks, ConfigInvalid, EnvReading<"SMTP_URL", never> | Scope>
smtpMailerBackend()
ts
function smtpMailerBackend(transport): MailerService;Defined in: packages/mailer/src/smtp.ts:43
The adapter's service over a transport. A rejected send becomes a modeled MailNotSent carrying the envelope and the transport's own words — never the body.
Parameters
| Parameter | Type |
|---|---|
transport | Transporter |