function sendEmail
sendEmail(email: OutgoingEmail): Promise<void>

Sends email from FROM_EMAIL and resolves once the SMTP server has accepted it. The welcome and reset emails don't wait for it: a slow server mustn't hold up the request.

Parameters

Return Type

Promise<void>

Throws

Error

When email is disabled, or when the server refuses the message or can't be reached.

Usage

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