interface EmailTransport

Hands a message to a mail server. nodemailer's SMTP transport is one, and the tests put a recording one in its place with setEmailTransport.

Methods

sendMail(message: OutgoingEmail & { from: string; }): Promise<unknown>

Usage

import { type EmailTransport } from "api/services/email-service.ts";