Create programmable emails (BETA)
Last updated: July 10, 2023
Available with any of the following subscriptions, except where noted:
|
Programmable emails allow you to use advanced HubL syntax to fully personalize the content of your emails. If you have an Enterprise subscription, you can include structured data sources such as HubDB tables and custom objects in programmable emails.
Learn more about how to create modules that use data from custom objects or HubDB in HubSpot's developer documentation.
Please note: you should thoroughly test any modules or templates, along with their associated dependents, before running a live email campaign.
Enable programmable email for your modules or templates
Before you start creating programmable emails, you must first enable the feature for the associated module or coded template:
- In your HubSpot account, navigate to Marketing > Files and Templates > Design Tools.
- To enable programmable email for a module:
- Create a new module, and select the Email templates checkbox when choosing where the module will be used.
- In the inspector on the right, toggle the Enable module for programmable email beta switch on.

-
- In the dialog box, review whether the module has any dependents. If the module has any dependents, review them, then select the I have reviewed the dependents checkbox. Click Enable.
- To enable programmable email for a custom coded template:
- Create a new template, and under Template type, select Email.
- Add the
isEnabledForEmailV3Rendering: true
annotation to the top of the template file.
-
- When you're done editing your template, click Publish changes in the top right.
- In the dialog box, review whether the module has any dependents. If the module has any dependents, review them, then select the I have reviewed the dependents checkbox. Click Enable.
- To use programmable email in a template you're creating in the drag and drop editor, drag a module that you've already enabled for programmable email into the template.
- If you're drafting an email in the drag and drop email editor, you can use a programmable module you've created by dragging the module into the body of the email.