Skip to main content

The email step allows you to send email notifications to your users. This step supports HTML content and can be used with React Email for building beautiful email templates.

Example Usage#

Email Step Output#

The object your resolver returns must match the schema below. Any other property is rejected by the Framework’s output validation.

PropertyTypeRequiredDescription
subjectstringYesThe subject line of the email.
bodystringYesThe content of the email. Can be plain text or HTML.
from{ email: string, name?: string }NoOverride the default sender address and display name for this send.
replyTostringNoSet a Reply-To address for the email.
preheaderstringNoPreview text shown next to the subject in most inbox clients.
useProviderDefaultsbooleanNoWhen true, Novu uses the sender values configured on the email provider instead of the workflow.

Sending attachments#

Attachments are not part of the email step output schema. Returning an attachments array from your step resolver has no effect and is rejected by the Framework’s output validation.

Pass attachments in the workflow trigger payload instead, then reference them by name in your email body if needed. Each attachment object needs file (Buffer or raw base64 without the data:<mime>;base64, prefix), name, and mime. See Sending attachments on the Email integrations page for the full field reference, size limits, and language examples.

Email Step Result#

The email step does not return any result object.