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.
The Node SDK is available on npm as @ravenrelay/node, starting with version 0.1.0. It requires Node.js 22.9 or later and runs on the server. 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.
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" }); React Email rendering requires React 19 and react-email 6.11.6. Supply your own text to override the generated plain-text version. Do not combine react with html or a saved template. 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.
npm install @ravenrelay/node 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 .
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 .
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 .
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.
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 .
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 →