The Shared Email Templates add-in has a wealth of wonderful features that are helpful on their own, but can be even more impressive when combined. This tip shows how to create conditional nested email templates by harnessing the power of template shortcuts, interactive fillable fields and If-sections.
Consider the scenario where you have several templates detailing your partner programs, product subscriptions, or other categories. You aim to craft a welcome email that dynamically incorporates specific details relevant to a given recipient. Here's how you can do it:
Start by making shortcuts for each smaller template intended for nesting. To do this, select a template, click on the ## symbols in the upper-left corner of the preview pane, and type the name of the shortcut.
The image below shows two templates for the Bronze and Silver levels of the partnership program, each with the assigned shortcut.
For more details, please see How to create template shortcuts.
Within your welcome email template, insert the shortcut names precisely where you want nested templates, forming a "container template" for the smaller ones.
To insert just one smaller template at a time, you need to set a condition that will decide which nested template to include in each particular email. This condition can be based on one of the email fields such as To, Cc, Bcc, Subject line, or message body. In our case, a more flexible approach would be to base the conditions on the values of a dropdown menu. This will let you explicitly indicate which nested template to include.
To create a drop-down menu, follow these steps:
For more information, please refer to How to add a dropdown menu to an email template.
For each template shortcut listed in your container template, add a condition and link it to a specific item of the dropdown menu. This ensures that the correct template is included based on your choice.
For instance, to configure the condition for the "Bronze" shortcut, perform these steps:
Repeat these steps to set up conditions for the other nested template shortcuts.
After completing the steps above, your dynamic email template should be fully configured and ready to use. The image below shows the finalized template with three conditions marked with vertical green bar indicators.
For more details, see How to add a condition based on the WhatToEnter macro result.
And now, the magic part. When using the partner program welcome email template, you are prompted to choose the partnership level from the dropdown list:
Upon selecting the desired level, the content of the corresponding nested template is automatically inserted into the message based on the conditions you set up earlier. The inserted content will retain its specific formatting, images, and other elements, resulting in a beautiful custom-tailored welcome email that's ready to send.
So, with these nifty features, creating personalized email templates has never been easier! Give it a try, and watch your emails dynamically adapt to each recipient's unique needs and preferences.
Post a comment
Seen by everyone, do not publish license keys and sensitive personal info!