RavenRelayDocs
Dashboard ↗

Sending

Email templates with React or Vue

Render React or Vue emails on your server, or reuse project templates with variables.

Send a React component

The Node SDK renders React Email components in your application into HTML and plain text before sending. React code is never uploaded or executed by RavenRelay. Existing HTML and text sending does not require React.

Install for React email rendering
npm install @ravenrelay/node react@19 react-email@6.11.6

React and react-email are optional peer dependencies of the SDK. Install both for the example below: WelcomeEmail uses React Email components internally, and passing the react field makes the SDK load React Email’s renderer to generate HTML and plain text. Your application does not need to import react-email directly when using a starter component.

Welcome email · TSX
import { RavenRelay } from "@ravenrelay/node";import { WelcomeEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Welcome to your account",  react: <WelcomeEmail appName="Your app" name="Joshua" actionUrl="https://example.com/account" />,}, { idempotencyKey: "welcome-user-123" });

Starter components include WelcomeEmail, VerificationEmail, PasswordResetEmail and ReceiptEmail. They contain no RavenRelay branding. You can also pass your own React Email component.

If you send HTML, plain text or a saved dashboard template instead of a React component, install only the SDK. React and react-email are not required for those sends.

Install for HTML, text or saved templates
npm install @ravenrelay/node

Send a Vue component

Vue apps can render an email component to HTML on the server, then send that HTML with the Node SDK. The SDK's react field is specific to React Email; Vue uses the html field. Keep your RavenRelay API key and this rendering code in a server endpoint or server job. A browser-only Vue app should call your own backend to request a send.

Install Vue and the Node SDK
npm install @ravenrelay/node vue
Vue email · server-side TypeScript
import { createSSRApp, h } from "vue";import { renderToString } from "vue/server-renderer";import { RavenRelay } from "@ravenrelay/node";​const name = "Joshua";const actionUrl = "https://example.com/account";const email = createSSRApp({  render: () => h("div", { style: "font-family: sans-serif" }, [    h("h1", "Welcome, " + name),    h("p", "Your account is ready."),    h("a", { href: actionUrl }, "Open your account"),  ]),});const html = await renderToString(email);​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Welcome to your account",  html,  text: "Welcome, " + name + ". Open your account: " + actionUrl,}, { idempotencyKey: "welcome-user-123" });

Starter templates

Browse the four built-in Node.js templates below. Each preview uses the same SDK component as its copyable TSX example. All props are required strings. These examples use sample values; supply your own app name, recipient details and action URLs. Your application generates and validates verification and password-reset links.

Welcome

Introduce your product and help new users get started.

Required props (all strings): appName, name, actionUrl.

WelcomeEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { WelcomeEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Welcome to Your app",  react: <WelcomeEmail appName={"Your app"} name={"Joshua"} actionUrl={"https://example.com/account"} />,}, { idempotencyKey: "welcome-user-123" });
Open welcome in the template library →

Email verification

Confirm email ownership with a verification link.

Required props (all strings): appName, name, actionUrl.

VerificationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { VerificationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Verify your email address",  react: <VerificationEmail appName={"Your app"} name={"Joshua"} actionUrl={"https://example.com/verify"} />,}, { idempotencyKey: "verification-user-123" });
Open email verification in the template library →

Password reset

Help users securely reset a password in your application.

Required props (all strings): appName, name, actionUrl.

PasswordResetEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { PasswordResetEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Reset your password",  react: <PasswordResetEmail appName={"Your app"} name={"Joshua"} actionUrl={"https://example.com/reset"} />,}, { idempotencyKey: "password-reset-user-123" });
Open password reset in the template library →

Receipt

Send a clear purchase receipt with a reference, amount and date.

Required props (all strings): appName, name, reference, amount, date.

Pass amount and date as display-ready strings in your customer’s currency and locale.

ReceiptEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ReceiptEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Your receipt",  react: <ReceiptEmail appName={"Your app"} name={"Joshua"} reference={"ORDER-123"} amount={"$49.00"} date={"15 October 2026"} />,}, { idempotencyKey: "receipt-user-123" });
Open receipt in the template library →

Barebone · Activation

Official React Email Barebone design for activation.

Required props (all strings): companyName, url.

BareboneActivationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { BareboneActivationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Activation — Your app",  react: <BareboneActivationEmail companyName={"Barebones"} url={"https://example.com/"} />,}, { idempotencyKey: "barebone-activation-user-123" });
Open barebone · activation in the template library →

Barebone · Feature Announcement

Official React Email Barebone design for feature announcement.

Required props (all strings): companyName, url.

BareboneFeatureAnnouncementEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { BareboneFeatureAnnouncementEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Feature Announcement — Your app",  react: <BareboneFeatureAnnouncementEmail companyName={"Barebones"} url={"https://example.com/"} />,}, { idempotencyKey: "barebone-feature-announcement-user-123" });
Open barebone · feature announcement in the template library →

Barebone · Password Reset

Official React Email Barebone design for password reset.

Required props (all strings): companyName, url.

BarebonePasswordResetEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { BarebonePasswordResetEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Password Reset — Your app",  react: <BarebonePasswordResetEmail companyName={"Barebones"} url={"https://example.com/"} />,}, { idempotencyKey: "barebone-password-reset-user-123" });
Open barebone · password reset in the template library →

Barebone · Product Update

Official React Email Barebone design for product update.

Required props (all strings): companyName, url.

BareboneProductUpdateEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { BareboneProductUpdateEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Product Update — Your app",  react: <BareboneProductUpdateEmail companyName={"Barebones"} url={"https://example.com/"} />,}, { idempotencyKey: "barebone-product-update-user-123" });
Open barebone · product update in the template library →

Barebone · Subscription Confirmation

Official React Email Barebone design for subscription confirmation.

Required props (all strings): companyName, url, userName, planName, planPrice, cycleLabel, nextBillingDate.

BareboneSubscriptionConfirmationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { BareboneSubscriptionConfirmationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Subscription Confirmation — Your app",  react: <BareboneSubscriptionConfirmationEmail companyName={"Barebones"} url={"https://example.com/"} userName={"Alex"} planName={"Pro"} planPrice={"$29"} cycleLabel={"month"} nextBillingDate={"April 22, 2026"} />,}, { idempotencyKey: "barebone-subscription-confirmation-user-123" });
Open barebone · subscription confirmation in the template library →

Barebone · Subscription Update

Official React Email Barebone design for subscription update.

Required props (all strings): companyName, url, userName, planName, planPrice, cycleLabel, nextBillingDate.

BareboneSubscriptionUpdateEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { BareboneSubscriptionUpdateEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Subscription Update — Your app",  react: <BareboneSubscriptionUpdateEmail companyName={"Barebones"} url={"https://example.com/"} userName={"Alex"} planName={"Pro"} planPrice={"$29"} cycleLabel={"month"} nextBillingDate={"April 22, 2026"} />,}, { idempotencyKey: "barebone-subscription-update-user-123" });
Open barebone · subscription update in the template library →

Barebone · Text Only

Official React Email Barebone design for text only.

Required props (all strings): companyName, url.

BareboneTextOnlyEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { BareboneTextOnlyEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Text Only — Your app",  react: <BareboneTextOnlyEmail companyName={"Barebones"} url={"https://example.com/"} />,}, { idempotencyKey: "barebone-text-only-user-123" });
Open barebone · text only in the template library →

Barebone · Welcome

Official React Email Barebone design for welcome.

Required props (all strings): companyName, url.

BareboneWelcomeEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { BareboneWelcomeEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Welcome — Your app",  react: <BareboneWelcomeEmail companyName={"Barebones"} url={"https://example.com/"} />,}, { idempotencyKey: "barebone-welcome-user-123" });
Open barebone · welcome in the template library →

Matte · Activation

Official React Email Matte design for activation.

Required props (all strings): companyName, url.

MatteActivationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { MatteActivationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Activation — Your app",  react: <MatteActivationEmail companyName={"Collage"} url={"https://example.com/"} />,}, { idempotencyKey: "matte-activation-user-123" });
Open matte · activation in the template library →

Matte · Feature Announcement

Official React Email Matte design for feature announcement.

Required props (all strings): companyName, url.

MatteFeatureAnnouncementEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { MatteFeatureAnnouncementEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Feature Announcement — Your app",  react: <MatteFeatureAnnouncementEmail companyName={"Collage"} url={"https://example.com/"} />,}, { idempotencyKey: "matte-feature-announcement-user-123" });
Open matte · feature announcement in the template library →

Matte · Password Reset

Official React Email Matte design for password reset.

Required props (all strings): companyName, url.

MattePasswordResetEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { MattePasswordResetEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Password Reset — Your app",  react: <MattePasswordResetEmail companyName={"Collage"} url={"https://example.com/"} />,}, { idempotencyKey: "matte-password-reset-user-123" });
Open matte · password reset in the template library →

Matte · Product Update

Official React Email Matte design for product update.

Required props (all strings): companyName, url.

MatteProductUpdateEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { MatteProductUpdateEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Product Update — Your app",  react: <MatteProductUpdateEmail companyName={"Collage"} url={"https://example.com/"} />,}, { idempotencyKey: "matte-product-update-user-123" });
Open matte · product update in the template library →

Matte · Subscription Confirmation

Official React Email Matte design for subscription confirmation.

Required props (all strings): companyName, url, userName, planName, planPrice, cycleLabel, nextBillingDate, subtotal, tax, total.

MatteSubscriptionConfirmationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { MatteSubscriptionConfirmationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Subscription Confirmation — Your app",  react: <MatteSubscriptionConfirmationEmail companyName={"Collage"} url={"https://example.com/"} userName={"Alex"} planName={"Pro"} planPrice={"$29"} cycleLabel={"month"} nextBillingDate={"April 22, 2026"} subtotal={"$29.00"} tax={"$0.00"} total={"$29.00"} />,}, { idempotencyKey: "matte-subscription-confirmation-user-123" });
Open matte · subscription confirmation in the template library →

Matte · Subscription Update

Official React Email Matte design for subscription update.

Required props (all strings): companyName, url, userName, planName, planPrice, cycleLabel, nextBillingDate.

MatteSubscriptionUpdateEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { MatteSubscriptionUpdateEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Subscription Update — Your app",  react: <MatteSubscriptionUpdateEmail companyName={"Collage"} url={"https://example.com/"} userName={"Alex"} planName={"Pro"} planPrice={"$29"} cycleLabel={"month"} nextBillingDate={"April 22, 2026"} />,}, { idempotencyKey: "matte-subscription-update-user-123" });
Open matte · subscription update in the template library →

Matte · Text Only

Official React Email Matte design for text only.

Required props (all strings): companyName, url.

MatteTextOnlyEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { MatteTextOnlyEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Text Only — Your app",  react: <MatteTextOnlyEmail companyName={"Collage"} url={"https://example.com/"} />,}, { idempotencyKey: "matte-text-only-user-123" });
Open matte · text only in the template library →

Matte · Welcome

Official React Email Matte design for welcome.

Required props (all strings): companyName, url.

MatteWelcomeEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { MatteWelcomeEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Welcome — Your app",  react: <MatteWelcomeEmail companyName={"Collage"} url={"https://example.com/"} />,}, { idempotencyKey: "matte-welcome-user-123" });
Open matte · welcome in the template library →

Protocol · Activation

Official React Email Protocol design for activation.

Required props (all strings): companyName, url.

ProtocolActivationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ProtocolActivationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Activation — Your app",  react: <ProtocolActivationEmail companyName={"Dither"} url={"https://example.com/"} />,}, { idempotencyKey: "protocol-activation-user-123" });
Open protocol · activation in the template library →

Protocol · Feature Announcement

Official React Email Protocol design for feature announcement.

Required props (all strings): companyName, url.

ProtocolFeatureAnnouncementEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ProtocolFeatureAnnouncementEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Feature Announcement — Your app",  react: <ProtocolFeatureAnnouncementEmail companyName={"Dither"} url={"https://example.com/"} />,}, { idempotencyKey: "protocol-feature-announcement-user-123" });
Open protocol · feature announcement in the template library →

Protocol · Password Reset

Official React Email Protocol design for password reset.

Required props (all strings): companyName, url.

ProtocolPasswordResetEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ProtocolPasswordResetEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Password Reset — Your app",  react: <ProtocolPasswordResetEmail companyName={"Dither"} url={"https://example.com/"} />,}, { idempotencyKey: "protocol-password-reset-user-123" });
Open protocol · password reset in the template library →

Protocol · Product Update

Official React Email Protocol design for product update.

Required props (all strings): companyName, url.

ProtocolProductUpdateEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ProtocolProductUpdateEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Product Update — Your app",  react: <ProtocolProductUpdateEmail companyName={"Dither"} url={"https://example.com/"} />,}, { idempotencyKey: "protocol-product-update-user-123" });
Open protocol · product update in the template library →

Protocol · Subscription Confirmation

Official React Email Protocol design for subscription confirmation.

Required props (all strings): companyName, url, planName, userName, nextBillingDate.

ProtocolSubscriptionConfirmationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ProtocolSubscriptionConfirmationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Subscription Confirmation — Your app",  react: <ProtocolSubscriptionConfirmationEmail companyName={"Dither"} url={"https://example.com/"} planName={"Pro"} userName={"Alex"} nextBillingDate={"April 22, 2026"} />,}, { idempotencyKey: "protocol-subscription-confirmation-user-123" });
Open protocol · subscription confirmation in the template library →

Protocol · Subscription Update

Official React Email Protocol design for subscription update.

Required props (all strings): companyName, url, userName, planName, nextBillingDate.

ProtocolSubscriptionUpdateEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ProtocolSubscriptionUpdateEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Subscription Update — Your app",  react: <ProtocolSubscriptionUpdateEmail companyName={"Dither"} url={"https://example.com/"} userName={"Name Surname"} planName={"Pro"} nextBillingDate={"Jun 15, 2026"} />,}, { idempotencyKey: "protocol-subscription-update-user-123" });
Open protocol · subscription update in the template library →

Protocol · Text Only

Official React Email Protocol design for text only.

Required props (all strings): companyName, url.

ProtocolTextOnlyEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ProtocolTextOnlyEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Text Only — Your app",  react: <ProtocolTextOnlyEmail companyName={"Dither"} url={"https://example.com/"} />,}, { idempotencyKey: "protocol-text-only-user-123" });
Open protocol · text only in the template library →

Protocol · Welcome

Official React Email Protocol design for welcome.

Required props (all strings): companyName, url.

ProtocolWelcomeEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ProtocolWelcomeEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Welcome — Your app",  react: <ProtocolWelcomeEmail companyName={"Dither"} url={"https://example.com/"} />,}, { idempotencyKey: "protocol-welcome-user-123" });
Open protocol · welcome in the template library →

Arcane · Abandoned Cart

Official React Email Arcane design for abandoned cart.

Required props (all strings): companyName, url.

ArcaneAbandonedCartEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ArcaneAbandonedCartEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Abandoned Cart — Your app",  react: <ArcaneAbandonedCartEmail companyName={"Skin"} url={"https://example.com/"} />,}, { idempotencyKey: "arcane-abandoned-cart-user-123" });
Open arcane · abandoned cart in the template library →

Arcane · Activation

Official React Email Arcane design for activation.

Required props (all strings): companyName, url.

ArcaneActivationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ArcaneActivationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Activation — Your app",  react: <ArcaneActivationEmail companyName={"Skin"} url={"https://example.com/"} />,}, { idempotencyKey: "arcane-activation-user-123" });
Open arcane · activation in the template library →

Arcane · Newsletter

Official React Email Arcane design for newsletter.

Required props (all strings): companyName, url.

ArcaneNewsletterEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ArcaneNewsletterEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Newsletter — Your app",  react: <ArcaneNewsletterEmail companyName={"Skin"} url={"https://example.com/"} />,}, { idempotencyKey: "arcane-newsletter-user-123" });
Open arcane · newsletter in the template library →

Arcane · Order Confirmation

Official React Email Arcane design for order confirmation.

Required props (all strings): companyName, url.

ArcaneOrderConfirmationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ArcaneOrderConfirmationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Order Confirmation — Your app",  react: <ArcaneOrderConfirmationEmail companyName={"Skin"} url={"https://example.com/"} />,}, { idempotencyKey: "arcane-order-confirmation-user-123" });
Open arcane · order confirmation in the template library →

Arcane · Order Shipping

Official React Email Arcane design for order shipping.

Required props (all strings): companyName, url.

ArcaneOrderShippingEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ArcaneOrderShippingEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Order Shipping — Your app",  react: <ArcaneOrderShippingEmail companyName={"Skin"} url={"https://example.com/"} />,}, { idempotencyKey: "arcane-order-shipping-user-123" });
Open arcane · order shipping in the template library →

Arcane · Password Reset

Official React Email Arcane design for password reset.

Required props (all strings): companyName, url.

ArcanePasswordResetEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ArcanePasswordResetEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Password Reset — Your app",  react: <ArcanePasswordResetEmail companyName={"Skin"} url={"https://example.com/"} />,}, { idempotencyKey: "arcane-password-reset-user-123" });
Open arcane · password reset in the template library →

Arcane · Promo

Official React Email Arcane design for promo.

Required props (all strings): companyName, url.

ArcanePromoEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ArcanePromoEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Promo — Your app",  react: <ArcanePromoEmail companyName={"Skin"} url={"https://example.com/"} />,}, { idempotencyKey: "arcane-promo-user-123" });
Open arcane · promo in the template library →

Arcane · Welcome

Official React Email Arcane design for welcome.

Required props (all strings): companyName, url.

ArcaneWelcomeEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { ArcaneWelcomeEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Welcome — Your app",  react: <ArcaneWelcomeEmail companyName={"Skin"} url={"https://example.com/"} />,}, { idempotencyKey: "arcane-welcome-user-123" });
Open arcane · welcome in the template library →

Studio · Abandoned Cart

Official React Email Studio design for abandoned cart.

Required props (all strings): companyName, url.

StudioAbandonedCartEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { StudioAbandonedCartEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Abandoned Cart — Your app",  react: <StudioAbandonedCartEmail companyName={"Halo"} url={"https://example.com/"} />,}, { idempotencyKey: "studio-abandoned-cart-user-123" });
Open studio · abandoned cart in the template library →

Studio · Activation

Official React Email Studio design for activation.

Required props (all strings): companyName, url.

StudioActivationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { StudioActivationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Activation — Your app",  react: <StudioActivationEmail companyName={"Halo"} url={"https://example.com/"} />,}, { idempotencyKey: "studio-activation-user-123" });
Open studio · activation in the template library →

Studio · Newsletter

Official React Email Studio design for newsletter.

Required props (all strings): companyName, url.

StudioNewsletterEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { StudioNewsletterEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Newsletter — Your app",  react: <StudioNewsletterEmail companyName={"Halo"} url={"https://example.com/"} />,}, { idempotencyKey: "studio-newsletter-user-123" });
Open studio · newsletter in the template library →

Studio · Order Confirmation

Official React Email Studio design for order confirmation.

Required props (all strings): companyName, url.

StudioOrderConfirmationEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { StudioOrderConfirmationEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Order Confirmation — Your app",  react: <StudioOrderConfirmationEmail companyName={"Halo"} url={"https://example.com/"} />,}, { idempotencyKey: "studio-order-confirmation-user-123" });
Open studio · order confirmation in the template library →

Studio · Order Shipping

Official React Email Studio design for order shipping.

Required props (all strings): companyName, url.

StudioOrderShippingEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { StudioOrderShippingEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Order Shipping — Your app",  react: <StudioOrderShippingEmail companyName={"Halo"} url={"https://example.com/"} />,}, { idempotencyKey: "studio-order-shipping-user-123" });
Open studio · order shipping in the template library →

Studio · Password Reset

Official React Email Studio design for password reset.

Required props (all strings): companyName, url.

StudioPasswordResetEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { StudioPasswordResetEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Password Reset — Your app",  react: <StudioPasswordResetEmail companyName={"Halo"} url={"https://example.com/"} />,}, { idempotencyKey: "studio-password-reset-user-123" });
Open studio · password reset in the template library →

Studio · Promo

Official React Email Studio design for promo.

Required props (all strings): companyName, url.

StudioPromoEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { StudioPromoEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Promo — Your app",  react: <StudioPromoEmail companyName={"Halo"} url={"https://example.com/"} />,}, { idempotencyKey: "studio-promo-user-123" });
Open studio · promo in the template library →

Studio · Welcome

Official React Email Studio design for welcome.

Required props (all strings): companyName, url.

StudioWelcomeEmail · TSX
import { RavenRelay } from "@ravenrelay/node";import { StudioWelcomeEmail } from "@ravenrelay/node/templates";​const client = new RavenRelay({  apiKey: process.env.RAVENRELAY_API_KEY!,  baseUrl: "https://api.getravenrelay.com",});await client.emails.send({  from: "accounts@example.com",  to: "user@example.com",  subject: "Welcome — Your app",  react: <StudioWelcomeEmail companyName={"Halo"} url={"https://example.com/"} />,}, { idempotencyKey: "studio-welcome-user-123" });
Open studio · welcome in the template library →

Reusable dashboard templates

Open Templates in your project to create a named HTML or plain-text template. Its slug is unique within that project. Use flat placeholders such as {{name}} in the subject and body, then preview with sample JSON values. Owners, administrators and developers can create, edit and delete; viewers can read and preview.

Send a saved template
curl https://api.getravenrelay.com/v1/emails \  -H "Authorization: Bearer $RAVENRELAY_API_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: welcome-user-123' \  -d '{"from":"accounts@example.com","to":"user@example.com","template":"welcome","variables":{"name":"Joshua"}}'

Supply every placeholder and no extra variables. Values may be strings, finite numbers or booleans. HTML values are escaped; placeholders do not execute code, access nested properties or inject raw HTML. Use quoted HTML attributes and validate action URLs in your application.

Saved template sends use the same API keys, domain restrictions, recipient limits, quota checks and suppression rules as other sends. Accepted messages retain their rendered content. Editing or deleting a template cannot change queued messages; retrying the same idempotency key and input reuses the original accepted message.

RavenRelay documentation. Examples describe the current implementation.