Create reusable templates with variables in the dashboard or via the API, then send them by id and personalize per recipient — no redeploys to change a subject line.
// create once
const { data } = await mb.templates.create({
name: 'Welcome',
subject: 'Welcome, {{ name }}!',
html: '<p>Hi {{ name }}, thanks for joining.</p>',
});
// publish before sending — a draft template is rejected
await mb.templates.publish(data.id);
// send by id, fill the variables
await mb.emails.send({
from: 'Acme <hi@acme.com>',
to: ['delivered@mailblastr.dev'],
template_id: data.id,
variables: { name: 'Alex' },
});Store subject + HTML/text once and send by template_id.
Personalize with {{ variable }} placeholders, filled per send.
Render React Email components to HTML and pass the result straight through.
Pass an explicit subject, from, or reply-to alongside a template to override its values per send.
Create, edit, and preview templates without a deploy.
Publish a template change once and every future send uses the new copy.
Write reusable email once and send it from anywhere.