Difference between revisions of "Email Templates"
Jump to navigation
Jump to search
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | This document can now be found at its new location in the [https://docs.hornbill.com/esp-config/email/templates/ Hornbill Document Library]. | ||
+ | |||
+ | [[file:hornbill-document-library.png|Hornbill Cloud|link=https://docs.hornbill.com/esp-config/email/templates/]] | ||
+ | <!-- | ||
+ | |||
<div style="border:1px solid #90C0FF; background:#D0E0FF; width:99%; padding:4px; margin-bottom:10px;"> | <div style="border:1px solid #90C0FF; background:#D0E0FF; width:99%; padding:4px; margin-bottom:10px;"> | ||
__NOTOC__ | __NOTOC__ | ||
Line 48: | Line 53: | ||
::* <nowiki>{{DATE}}</nowiki> = The current date in the format 2016-11-23 | ::* <nowiki>{{DATE}}</nowiki> = The current date in the format 2016-11-23 | ||
::* <nowiki>{{TIME}}</nowiki> = The current time in the format 23:53 | ::* <nowiki>{{TIME}}</nowiki> = The current time in the format 23:53 | ||
+ | ::* <nowiki>{{instanceId}}</nowiki> = The id of the Hornbill instance | ||
:* '''Modifiers''' | :* '''Modifiers''' | ||
− | :: The following modifiers are used with variables and are available | + | :: The following modifiers are used with variables and are available: For example |
::* <nowiki>{{.H_firstname|upper}}</nowiki> = Will force the value to uppercase i.e JOHN. | ::* <nowiki>{{.H_firstname|upper}}</nowiki> = Will force the value to uppercase i.e JOHN. | ||
::* <nowiki>{{.h_firstname|lower}}</nowiki> = Will force the value to lowercase i.e john. | ::* <nowiki>{{.h_firstname|lower}}</nowiki> = Will force the value to lowercase i.e john. | ||
Line 56: | Line 62: | ||
::* <nowiki>{{.h_firstname|html}}</nowiki> = Allows HTML output from a template variable instead of HTML being shown as text. | ::* <nowiki>{{.h_firstname|html}}</nowiki> = Allows HTML output from a template variable instead of HTML being shown as text. | ||
::* <nowiki>{{.h_firstname|wiki}}</nowiki> = Allows HTML output from a template variable that contains wiki markup, Currently only basic formatting (Bold, Italic, Ordered & Unordered lists) are supported. | ::* <nowiki>{{.h_firstname|wiki}}</nowiki> = Allows HTML output from a template variable that contains wiki markup, Currently only basic formatting (Bold, Italic, Ordered & Unordered lists) are supported. | ||
+ | ::* <nowiki>{{.datetimevariable|formatLocalTime}}</nowiki> = Allows formatting of datetime variables using system regional settings ('''system.RegionalSettings.timezone''' & '''system.RegionalSettings.dateTimeFormat'''), without this formatting the date time will use the DB value (UTC). | ||
+ | {{infobox|''Modifiers do not apply for extended variables. For example, modifiers cannot be applied (they will not work) on variables like "Customer Coworker.H_first_name"''}} | ||
==Variable Visibility == | ==Variable Visibility == | ||
Line 74: | Line 82: | ||
<br> | <br> | ||
====What Operators can I use in my ESP Conditions?==== | ====What Operators can I use in my ESP Conditions?==== | ||
− | The operators "'''='''" and "'''!='''" are supported. | + | The operators "'''='''" (equal to) and "'''!='''" (not equal to) are supported. |
<br> | <br> | ||
+ | |||
====The Co-Worker Vs Contact ESP Condition Example==== | ====The Co-Worker Vs Contact ESP Condition Example==== | ||
One common situation where the ESP expression is essential is when you want to begin your emails with “Dear [Customer]”. | One common situation where the ESP expression is essential is when you want to begin your emails with “Dear [Customer]”. | ||
Line 116: | Line 125: | ||
[[Category:Administration]][[Category:Videos]] | [[Category:Administration]][[Category:Videos]] | ||
+ | --> | ||
+ | <<!-- esp-config/email/templates --> | ||
+ | [[Category:HDOC]] |
Latest revision as of 18:43, 11 April 2024
This document can now be found at its new location in the Hornbill Document Library.