Overview
Sendi supports React Email — write your emails as React components and Sendi’s SDK renders them to HTML automatically.React Email is a Pro plan feature. Free plan users will receive a
403 error.How It Works
- Install
@react-email/renderalongsidesendi-email - Pass a React component via the
reactprop insendi.emails.send() - The SDK renders it to HTML client-side and sends the HTML to the API
Setup
Usage
Create a React Email component:How Rendering Works
The SDK dynamically imports@react-email/render and converts your JSX to an HTML string before sending it to the Sendi API. The react_email: true flag is set in the request so the API can enforce plan restrictions.
If @react-email/render is not installed, the SDK throws a clear error with installation instructions.
Plan Restrictions
| Plan | React Email |
|---|---|
| Free | Not available (403) |
| Pro | Full access |
Combining with Other Options
You can usereact alongside other send options like cc, bcc, replyTo, attachments, and tags. If you pass both react and html, the rendered React output takes precedence.