Skip to main content

default

chainalign-backend


chainalign-backend / services/emailService / default

Variable: default

default: object

Defined in: services/emailService.js:53

Type Declaration

sendEmail()

sendEmail: (options) => Promise<void>

Sends an email using SendGrid.

Parameters

options
from

string

The sender's email address (must be a verified sender in SendGrid).

html

string

The HTML body of the email.

subject

string

The subject of the email.

text

string

The plain text body of the email.

to

string

The recipient's email address.

Returns

Promise<void>