Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/utils/email

lib/utils/email

Email sending utilities.

Wraps Payload’s sendEmail with error handling so callers do not need to repeat try/catch + logError for fire-and-forget notification emails.

Functions

safeSendEmail()

safeSendEmail(payload, options, context): Promise<void>

Send an email via Payload, logging and swallowing any error.

Use this for non-critical notifications where a delivery failure should not abort the calling operation (e.g. “email changed” notifications).

Parameters

payload

BasePayload

options

SendEmailOptions

context

string

Returns

Promise<void>

Last updated on