Email Templates Customization

Overview

This tutorial focuses on customization of transactional emails that are sent to your customers when certain user actions occur (e.g. registering to your service or requesting a password reset) which is possible with the Advanced Customization option (Cleeng-Mailchimp integration).

If you select the Advanced Customization option for your transactional emails, you can build an email template from scratch using the visual editor in Mailchimp and adding Cleeng data variables (parameters) in the template content.

Cleeng parameters work like Mailchimp merge tags. For more information on how Mailchimp merge tags work, see Mailchimp documentation.

In Cleeng, we have two kinds of parameters that you can use to insert personalized or dynamic content in your emails:

  1. Global Parameters
  2. Specific Template Parameters

For example, you can use the CUSTOMER_FIRST_NAME parameter to display a customer’s first name where the parameter is placed. You can paste it anywhere you want in the html file, it can be either a value for parameter or value in the text tag like in the example below.

Note: Please pay attention to the formatting of parameters as specified in the Mailchimp documentation for merge tags.

<b>Hi *|CUSTOMER_FIRST_NAME|*,</b>
Welcome email example

"Welcome email" example

Global parameters

They are used in every template to reflect a broadcaster’s branding and data of a specific customer that an email is sent to.

ParameterTypeDescription
CUSTOMER_FIRST_NAMEstringCustomer’s first name
CUSTOMER_EMAILstringCustomer’s email address
PUBLISHER_NAMEstringBroadcaster’s name
ACCOUNT_URLstringAccount link
TERMS_URLstringTerms & Conditions link
PRIVACY_URLstringPrivacy Policy link
CURRENT_YEARnumberCurrent year
PUBLISHER_LOGOstringBroadcaster’s logo set by the broadcaster in the dashboard’s brand settings
PUBLISHER_MAIN_COLORstringMain color set by the broadcaster in the dashboard’s brand settings

Specific template parameters

This section is divided into email templates.

It contains specific template parameters that are applicable to particular email templates and are used besides global ones.

Welcome email

No specific parameters for "Welcome email" template.

Access purchased

Specific Template ParameterTypeDescription
OFFER_AMOUNTnumberOffer amount
OFFER_CURRENCYstringOffer currency
OFFER_TYPEstringOffer type
OFFER_NAMEstringOffer name
RENEWAL_DATEstringRenewal date
TRIAL_STATUSbooleanTrial status (whether a subscription is or is not in a trial period)

Invoice

Specific Template ParameterTypeDescription
TRANSACTION_NAMEstringTransaction name
TRANSACTION_PRICE_TAXnumberTransaction amount - with tax included
TRANSACTION_PRICE_NO_TAXnumberTransaction amount - with tax excluded
TRANSACTION_CURRENCYstringTransaction currency
TRANSACTION_TAX_RATEnumberTax rate (%) used in the transaction
TRANSACTION_DATEstringDate of payment
TRANSACTION_IDstringTransaction ID
TRANSACTION_TAX_VALUEnumberTransaction tax value
FEE_NAMEstringName of the fee charged for the transaction, e.g handling fee
FEE_VALUEnumberFee amount
FAQ_URLstringFAQ link
CUSTOMER_COUNTRYstring2-letter customer country code (ISO 3166 country code)
OFFER_TYPEstringOffer type
TRIAL_STATUSbooleanTrial status (whether a subscription is or is not in a trial period)

Renewal announcement

Specific Template ParameterTypeDescription
OFFER_AMOUNTnumberOffer amount
OFFER_CURRENCYstringOffer currency
RENEWAL_DATEstringRenewal date

Subscription renewed

Specific Template ParameterTypeDescription
IS_SUB_REACTIVATEDbooleanWhether a subscription is reactivated

Access expired

Specific Template ParameterTypeDescription
TRIAL_STATUSbooleanTrial status (whether a subscription is or is not in a trial period)

Failed payment

Specific Template ParameterTypeDescription
REJECTED_COUNTnumberCount of the rejected payment attempts
PAYMENT_METHODstringPayment method
OFFER_AMOUNTnumberOffer amount
OFFER_CURRENCYstringOffer currency
FAILURE_REASONstringFailure reason

Forgot password

Specific Template ParameterTypeDescription
RESET_PASSWORD_URLstringPassword reset link

Credit card issues

Specific Template ParameterTypeDescription
CARD_EXPIREDbooleanStatus of a customer’s card

Refund confirmation

Specific Template ParameterTypeDescription
OFFER_NAMEstringOffer name
REFUND_AMOUNTnumberRefund amount