Using programming

Features ›› Templates ›› Examples ››
Parent Previous Next

Example: Using different Salutations for different time of day

You want to use a different salutation depending on the current time of day?

Use the following template for example:

Template text

Good #if($Now().Hour < 11) morning #elseif($Now().Hour < 13) afternoon #elseif($Now().Hour < 18) day #else evening #end,


The template will look like this:

When you use this template the resulting email will look like this:


All features of the programming in templates (e.g. Placeholders, Fields, etc...) are also available in the Salutations and Closings.

You can use the logic above also directly in the Greetings Settings: