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>',
});
// send by id, fill the variables
await mb.emails.send({
from: 'Acme <hi@acme.com>',
to: ['new@example.com'],
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 explicit subject/html alongside a template to override its fields.
Create, edit, and preview templates without a deploy.
Update a template once and every future send uses the new copy.
Write reusable email once and send it from anywhere.