Back in stock email template
Inventory alert template with a quick action to buy before it sells out again.
- When to send it
- As soon as an item returns, to the people who asked to be told.
- What to put in it
- The item, its price, how many are left if you know, and a buy button.
- Subject lines to try
- “It is back: the item you were waiting for” or “Back in stock, while sizes last”
- Avoid
- Sending it to everyone. Send it to the people who asked to be told, and say if stock is limited.
- Good for
- product spotlights, abandoned carts and restocks
- Built from
- 6 blocks in 3 rows: Text, Heading, Button, Image, Social links
- Yours to change
- Every block, color and line of text is editable. Your app reads the finished design as email HTML. See how templates work in the docs.
Use it in your React app
A template is a design JSON document, not a React component. Your users find this one in the editor's Template Library (Body, Templates, Open Library). To start a user from a design in your own code, load it when the editor is ready, then read it back with exportHtml and render it on your server. The Free plan covers this whole loop.
import EmailEditor, { type MailkaroIframeEditorRef } from "react-email-craft";
import { useRef } from "react";
// design: a design JSON document, for example one you saved from the editor
export function Designer({ design }) {
const ref = useRef<MailkaroIframeEditorRef>(null);
return (
<div style={{ height: "100vh" }}>
<EmailEditor
ref={ref}
token="pk_live_your_publishable_key"
onReady={() => ref.current?.editor.loadDesign(design)}
/>
</div>
);
}React email templates: code components or a visual editorBuild a React email builderA free Unlayer alternativeQuick start in the docs