The Email Template Uploading Process
To upload email templates, you must provide the templates to Vindicia. You cannot directly upload email templates into Vindicia Subscribe. To upload email templates:- Create a set of email templates that incorporate email tags supported by Vindicia Subscribe and provide them to Vindicia.
- Vindicia loads the templates into the database in Staging for testing by your organization.
- The load/test process repeats until the templates have passed your QA.
- When the email templates are ready to launch, Vindica loads the template into Production.
- If you need to make changes to the templates after they are in live production, open a support ticket and give the updated templates to Vindicia Client Technical Support (CTS.)
Email Tags: Tuples vs. Template Toolkit
Vindicia Subscribe supports two syntax forms to embed email tags into your email content:- A tuple is an ordered set of values. Tuples are simplistic devices that allow only for the replacement of the single data element the tag represents, such as “amount”, “name”, and so on.
- Template Toolkit is a set of open-source Perl modules (not developed by Vindicia) which can be used to employ programmatic constructs around email tags. For example, an array of transaction items can be iterated through and tested for specific values using statements such as FOREACH and IF, and regular expression matching such as “==” and “!=”. For more information about Template Toolkit, see http://template-toolkit.org/.
Using Tuples
Tuples take the form<tpl name="<TAG>"/>. As an example, the tuple for the amount tag is <tpl name="amount"/>, which is replaced with the actual amount generated on a Transaction by Vindicia Subscribe when this email event is triggered.
For information about tuples available in Vindicia Subscribe, see Creating Billing Notification Templates in the Vindicia Subscribe Programming Guide.
Using Template Toolkit
Template Toolkit support in Vindicia Subscribe is a method of enveloping the available email tags within the Template Toolkit structure. Some email tags in Vindicia Subscribe can be in the form of an array, which can be unwieldy for the simple tuple structure. For example, in a Transaction with more than one Transaction Item (sku), there are several arrays that can be used together to display a coherent picture of the transaction: sku, price, and desc.
The following Template Toolkit example iterates through these tag arrays in order to display the correct amount of purchased items in an email, skipping any items that do not have a value for price:
affiliate tag to change the text in the greeting:
Testing Template Toolkit
When using Template Toolkit, it is useful to test the syntax locally without loading email templates and trigger events. To test syntax, download the Template Toolkit modules and use the tpage tool. Download Template Toolkit modules at http://template-toolkit.org/ The example below uses tpage to test a text template with some tag parameters defined on the command line and some defined in the input file:-
The test file test.tt contains the following content:
-
The command line shown here specifies the data to replace the tags in the test file:
-
The test generates the following email:

