What problem does it solve?
Mailtrap-hosted templates separate email design from application code and eliminate guesswork about payload shape, variable handling, and previewing; this reduces integration errors and speeds up sending template-driven transactional or bulk messages.
Core Features & Use Cases
- Template integration: Reference templates by UUID in API payloads to reuse designs across transactional and bulk streams.
- Handlebars personalization: Pass template_variables for escaped or raw output, conditionals, loops, and nested paths to render dynamic content per recipient.
- Testing & preview: Use the Sandbox and Testing API to preview template renders safely before live delivery.
- Use case: Send a password reset email using a Mailtrap template UUID with template_variables populated from your application.
Quick Start
Send a template-based email by calling the appropriate send endpoint with template_uuid set to the template's UUID and template_variables containing the Handlebars data for the recipient.