Email Template
Engage Premier requires a Business tier account and includes Engage Foundations and Unify.
See the available plans, or contact Support.
Use Twilio Engage to build personalized email templates to store and use throughout marketing campaigns.
Build an email template from scratch using the Drag and Drop Editor or the HTML Editor. Include personalized content in the subject line, preview text, and email body to engage with users based on their profile traits and actions.
Build an Email template
Navigate to Engage > Content and use the Email Templates page to preview and edit existing templates.
To configure an email template, click Create Template.
- Select Email, and click Configure.
You must first connect a SendGrid subuser account to your Segment space to build email templates in Engage. Visit the onboarding steps for more information.
- Configure the email template.
- Add a template name for internal reference.
- Add an internal description.
- Enter the sender email address.
- Emails can only be sent from verified domains.
- Enter the sender name.
- Indicate if you want replies sent back to the initial sender. If not, add a “reply to” email and name.
- Add email addresses to receive a blind carbon copy of your email.
- Add preview text and the subject line. Use merge tags to personalize the email template with real-time profile traits.
- Select the design method to build your email template:
- Drag and Drop Editor is a drag and drop WYSIWYG tool with customizable content blocks.
- HTML Editor contains both a code and visual editor from a single view. This editor provides complete HTML editing access with error flagging.
- Design the email template, then click Create Email Template.
Engage content validation
For all content editors in Engage, you’ll see alerts for any issues in your template, such as invalid profile traits or incorrect liquid syntax. Engage both flags template issue(s), and displays recommended next steps. While you can save these templates, you must fix any issues before using them in Engage campaigns.
Test the Email template
You can send test emails before you include a template in marketing campaigns.
- Select the email template you want to test on the Templates screen.
- From the Template Settings page, click Test email.
- If your template has profile traits, enter a trait value for the test email. This ensures that your merge tags work as expected.
- To test a default value, leave the profile traits field blank. Default values must be assigned in your merge tags. For example,
loyal customer
would be the default for the following merge tag:{{profile.traits.first_name | default: "loyal customer"}}
. - To test traits with arrays, you must input the array in JSON format. For example,
[“item1”, “item2”]
or[{“itemName”: “shoes”}]
. If you don’t use JSON format for arrays in the test message side sheet, your template might not render as expected.
- To test a default value, leave the profile traits field blank. Default values must be assigned in your merge tags. For example,
- Enter recipient email addresses for the test message.
- Profiles that you send test messages to must have a userId in Segment.
- Select Send test email.
When you send a test message, the trait must be valid for the field it’s being used in. For example:
- If you use
profile.traits.first_name
in the From sender field, it must be a valid username. - If you use
profile.traits.email
in the Reply to email field, it must be a valid email address.
You can also test email templates directly from a Send an Email step in Journeys.
Personalize with merge tags
Personalize email content in Twilio Engage with real-time profile traits in your email subject line, preview text, and message body.
As you configure the template, click Merge Tags and select the profile traits to include. Engage inserts the merge tags based on cursor placement.
You can also add merge tags in the heading or body text as you design an email with the Drag and Drop or HTML editors. Engage supports liquid templating to create dynamic content in the email design editor.
To learn more about profile traits, visit Segment’s Computed Traits and SQL Traits documentation.
Include unsubscribe and manage preference links
When you build an email template, you’ll need to include links that your customers can access to unsubscribe and manage their email preferences. You’ll find both in the Special Links dropdown menu of the Insert/Edit link window.
Unsubscribe links
When you build email templates, it’s your responsibility to include an unsubscribe link in your message. Add unsubscribe links to an email template from the Drag and Drop or HTML editors.
When a recipient clicks on an unsubscribe link, they’ll see a confirmation page and the recipient’s subscription state is updated.
Learn more about User Subscriptions in Twilio Engage.
Manage preference links
The manage preference link lets your customers opt in and out of email groups on an individual basis instead of unsubscribing from all your campaigns.
For more information, see subscription groups.
Clone an Email template
You can clone existing Email templates to edit and use in your message campaigns.
To clone a template, navigate to the Templates page (Engage > Content). You can also clone from the Overview page of an individual template.
- Click the … icon.
- Select Clone.
- Enter a template name.
- Click Clone to save the template.
After you clone a template, you can edit it from the Templates page.
Next steps
-
View some email deliverability tips and tricks from SendGrid.
-
You can also use the Templates screen in Engage to build SMS templates.
This page was last modified: 03 Oct 2023
Need support?
Questions? Problems? Need more info? Contact Segment Support for assistance!