In this section we will show you how to customize your email notifications. We will work with the example of Job notifications, but any other template could be updated with your custom texts:
Customize Job notifications
- First click on the View/Edit
- Now on the following page you will be able to view and edit your email body and titles content by clicking on the "Edit" link located on the top right of your page.
- In the "edit" mode of your email notification you will be able to modify the email and the titles content as a normal text based (design) mode or you can also edit the content by clicking the on the html tab as shown below. Edit your template below and click 'Save' once finished.
Make sure to preview the template for final validation. For advanced editing switch to HTML mode. Insert placeholders, such as {{SupplierName}}, for project, job or supplier related information. - Help with placeholders: To help you with the email template placeholders you can click the "Help with placeholders" link which located above the email customization box. Email templates contain "placeholders" that will be replaced with real data from the supplier, the job or the project.
Conditional rules and how to use them
Email templates also conditional statements such as:
IF - ELSE - ENDIF:
{% if JobStatusCode == 'InProgress' or JobStatusCode == 'Completed' %} In progress! {% else %}Not in progress! {% endif %}
CASE - WHEN - WHEN - ELSE - ENDCASE:
{% case JobStatusCode %} {% when 'InProgress' %} In progress! {% when 'Cancelled' %}Cancelled! {% else %}Other status! {% endcase %}
We will take an example where we gonna structure emails to be send depending on languages. It means you can customize your email notifications with conditional structures.
- Setup of destination language to "DE" language. In this case we tell the system to send notification when the target language is "De"
The destination language is defined by the client language setup. This can be configured in the client configuration section.
- DE example:
{% case DestinationLanguage %} → In case the destination language is set to.......
{% when 'de' %} → Language setup to "de"
{% if DestinationAny %} → All notification
Guten Tag
{{DestinationFirstNameOrFullNameOrCompany}} → Placeholders - FR example:
{% case DestinationLanguage %} → In case the destination language is set to.......
{% when 'fr' %} → Language setup to "fr"
{% if DestinationAny %} → All notification
Bonjour
{{DestinationFirstNameOrFullNameOrCompany}} → Placeholders
Preview results and reset template
Please make sure you save your changes before clicking on the "Preview with sample data" link.
You can directly view your customization results by clicking on the "Preview with Sample data" link.
You can also reset your customization emails back to they default state by clicking on the "Paste default template".
A popup will appear asking you to confirm your email reset.