function sendWelcomeEmail
sendWelcomeEmail(user: User): void

Emails user the welcome message, if email is configured. The register route calls it once the account exists, and doesn't wait: a slow or failing SMTP server mustn't hold up the sign-up, so a failure is only logged.

Parameters

user: User

Return Type

void

Usage

import { sendWelcomeEmail } from "api/services/user-service.ts";