Dynamic email templates
Reusable email templates with Handlebars variables and React Email. Preview, version, and send updates without redeploying your app.
Handlebars variables
Use {{name}}, {{company}}, or any custom variable. Conditional blocks and loops render personalised content for every recipient.
React Email support
Build templates as React components with full TypeScript support. Compile to responsive, accessible HTML with the React Email library.
Version history and rollback
Every template edit is versioned. Compare revisions, preview any past version, and roll back in a single click if something ships wrong.
Send with a template
typescript
await poststack.emails.send({
from: 'hello@yourdomain.com',
to: 'user@example.com',
subject: 'Welcome, {{name}}!',
templateId: 'tmpl_welcome_v2',
variables: {
name: 'Alice',
company: 'Acme Inc',
loginUrl: 'https://app.acme.com/login',
},
});