Skip to main content
Send with html, text, or both at the top level:
Providing content via body: { text, html, react } is deprecated but still supported. Prefer top-level html, text, and react.

React Email

Pass a React Email component as react; the SDK renders it to HTML and plain text before sending. Install @react-email/render and its peer deps when using this:
Define a component (e.g. Email.tsx):
Then pass it to react:

Parameters

email.send(params)

string | string[]
required
Recipient email or array of recipients (max 10).
string
required
The sender’s email address. Can include a display name: "Your App <no-reply@yourapp.com>"
string
required
The email subject line.
string
HTML version of the email content. Use html, text, and/or react (one or more required).
string
Plain text version of the email content.
ReactNode
A React Email component; the SDK renders it to HTML and plain text. Requires @react-email/render, react, and react-dom.
object
Deprecated. Use top-level html, text, and react instead. Still supported: body: { text?, html?, react? }.
string
Email address for replies. If not specified, replies will go to the from address.
string | string[]
Carbon copy recipients. Can be a single email address or an array of addresses.
string | string[]
Blind carbon copy recipients. Can be a single email address or an array of addresses.
Record<string, string> | object[]
Custom email headers as a key-value object (e.g., { "X-Campaign": "welcome" }). The JS SDK also accepts [{ name, value }] and normalizes it automatically.
boolean
Embed a tracking pixel in the HTML body. Fires an email.opened webhook the first time the email is viewed. Requires html (or react).

Response

string
Unique identifier for the sent email, used for tracking delivery status and analytics.
object
Request metadata including ID, timestamp, and API version.