- Help & API
Create Dynamic Personalization with Our Flexible Email Template Language
Say goodbye to generic emails—and to flaky, fussy template editing tools. Whether your messages need just a little customization or are completely data-driven, SparkPost’s email templates give you the flexibility to programmatically tailor each message at the individual recipient or list level. Our powerful and adaptable template language gives you total control.
Manipulate email templates from the API or UI
We’ve all used in-browser, point-and-click editors that are time-consuming, tediously repetitive, and even unpredictably quirky. That’s why SparkPost’s template system lets you add personalization, business logic, and dynamically generated content to every message you send in a programmatically effective way.
- Create, manage, and control templates via API or UI.
- Template rules and data can be as sophisticated as you need.
- All template features are fully accessible to programmatic control.
Control message generation logic and flow control in your email templates
Our powerful and adaptable template language gives you total control over message generation logic, with rules and data as sophisticated as you need.
- Templates support substitution variables and dynamic content in all parts of the email—headers, HTML, and text.
- Configure default values if substitution data is absent.
- Define nested substitution rules to go beyond simple variable substitution.
- Build sophisticated logic with full conditionals like if, then, else, elseif, and more, or loop over JSON arrays using each.
Extend email template functionality with business logic
If your business processes are truly data-driven, SparkPost’s API-driven template system gives you unlimited flexibility to let your business logic control your email messaging.
- Extend the capabilities of your email template with the SparkPost API.
- Generate messages that reflect all the advanced functionality of external applications and services.
Import email templates and handlebars logic from other platforms
Developers will feel right at home with our template language, and SparkPost’s familiar syntax style helps your team hit the ground running. And if you’ve developed custom email templates on other platforms like Mandrill, we make it easy to leverage your work and investment.
- Familiar handlebars-style syntax based on sit2.
- Automated template conversion tools to pull existing templates into SparkPost from other services.
Serious template support for Enterprise senders
- Technical Account Managers (TAMs) deliver template best practices and help you integrate business logic.
- Integrated SMS text message and mobile push in templates with Enterprise add-on plan.
Learn More about Email Templates
Build your knowledge and explore email best practices with SparkPost’s email template resources.