Guides

React Email

Render a React email element through the optional sently React plugin.

Install the optional react and @react-email/render peer dependencies before using this integration.

The one rule

Import the React plugin from sently/react; it is not part of the main entrypoint.
import { reactPlugin } from "sently/react";

const mailer = await createMailer({ transport, plugins: [reactPlugin()] });

Pass the element as react in the mail options.