Templates
Email templates your whole team can edit
Keep email markup out of your codebase. Store HTML templates with variables, preview them live, and reference them by ID or alias when you send.
- 01Variables
- Use {{{name}}} placeholders with fallbacks like {{{name|there}}}.
- 02Live preview
- See exactly how your HTML renders while you edit.
- 03Aliases
- Reference templates by a stable alias such as welcome-email.
- 04API managed
- Create and update templates programmatically from CI.
await mailvina.emails.send({
from: 'Acme <[email protected]>',
to: '[email protected]',
template: { id: 'welcome-email', variables: { name: 'Ada' } },
});