Templates

Templates are the recommended way to send emails through Notify. Instead of hardcoding email content, templates let you design reusable, dynamic email layouts that work across different use cases — welcome emails, password resets, invoices, and more.

Why Use Templates?

Using templates instead of raw HTML or inline content provides key benefits:

  1. Consistent branding – Maintain a uniform look across all emails.
  2. Dynamic variables – Use {variable_name} placeholders to personalize emails at scale.
  3. WYSIWYG AI-powered editor – Design emails visually without dealing with HTML complexity.
  4. Real-time preview – Instantly see how your emails will look before sending.

Creating Templates

Notify's drag-and-drop template builder lets you create stunning, responsive emails with zero coding required. Whether you prefer to build manually or generate a template using AI, Notify makes the process fast and intuitive.

Key Features

  • AI-Powered Template Generation – Describe what you need, and Notify's AI will generate a fully designed email for you.
  • True Drag-and-Drop Editing – Easily add, move, and customize elements in a real-time WYSIWYG interface.
  • Mobile-Optimized – Every email adapts seamlessly to any screen size.
  • Fully Customizable – Edit text, styles, layouts, and components to match your brand effortlessly.

With Notify, anyone — from developers to marketers — can create professional, high-converting emails in minutes.

Try it yourself!

No dynamic variables found. Add variables using {variable} syntax.

Inbox
R
Recipient<hey@acme-co.com>
to Customers

Your Perfect Email Starts Here!

Drag, drop, edit. It’s that simple.

Welcome to the Notify email playground! Drag n' drop new elements here from the left, then edit and style them to build your perfect email. Whether you're crafting a welcome message, a product update, or a critical notification - your message, your way.


API Integration with Templates

Once you've designed a template, you can send emails dynamically using the Notify API.

1. Using Notify's SDK

If you're using Notify's SDK, send an email with a template like this:

await notify.sendEmailFromTemplate({
  to: "recipient@example.com",
  from: "noreply@notify.cx",
  templateId: "<your_template_id>",
  variables: {
    name: "John Doe",
    company: "Example Inc.",
  },
});

2. Sending via Direct API Calls

If you're not using the SDK, you can call the API directly:

fetch("https://notify.cx/api/send-email-from-template", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": process.env.NOTIFY_API_KEY,
  },
  body: JSON.stringify({
    templateId: "<your_template_id>",
    variables: {
      name: "John Doe",
      company: "Example Inc.",
    },
  }),
});

How It Works

  • templateId – Identifies the template you want to use.
  • variables – Passes dynamic data (e.g., {name}, {company}) to personalize the email.

Next Steps