Design your emails as React components and send them in a single call. The SDK's react: convenience renders your component to a polished HTML body and a plaintext alternative, then sends both as one multipart/alternative message.
React Email gives you composable, type-safe components that render to email-client-safe HTML. PristineSend's SDK accepts a React element directly on send / sendBatch — no separate render step, and the recipient gets a proper html + text message for the best inbox placement.
Add the SDK plus React Email. @react-email/render is an optional peer of the SDK — it's only needed when you use react:, and is imported lazily.
A template is just a React component that returns React Email elements. Props are your merge fields:
Pass the element on react:. Because the value is a React element, call send from a .tsx/.jsx file (or use React.createElement).
The SDK renders your component twice — once to HTML, and best-effort to plaintext (React Email's render(el, { plainText: true })) — and sends a multipart/alternative message with both. Plenty of spam filters penalize html-only mail, so this matters for deliverability. If the installed renderer can't produce plaintext, the SDK falls back to html-only rather than failing.
Need exact control of the text part? Pass text: and it overrides the generated plaintext: