Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Message templates Templates are list of content templates to be used in notifications like task assignment or reminders. By . Templates can be used to define as mail notification or generate documents from scripting environment.

By default emakin uses predefined templates but message contents to send notifications but mail content can be customized by creating a message new template. For more information please refer to data templates. 

The following steps describes to create message templates in the Emakin.

...

  • Standart type is utilized to create content of written. For more information please refer to data templates. 
  • XSLT type is utilized to create content of  xml.

...

Defined templates can be also used in scripting. For more information please refer to $Templates page.

Default Templates

By default emakin uses following templates that stored in "configuration/messagetemplates.xml" file:

Task Notification

Code Block
languagexml
<html>
<body style="margin:0; padding:0">
 <div style="margin:1em">
  <p><b>{{ $Recipients }}</b>,</p>
  <p>You have a new task named {{ $WorkItem.Caption }}.</p>
  <p>
   <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a>
  </p>
  <p>{{ $WorkItem.Instructions }}</p>
  <p><u>Details</u>
   <br></br>
   <b>Form number</b> {{ $Instance.Number }},<br></br>
   {{ if $WorkItem.DeadlineDate then <b>Deadline date</b> {{ $WorkItem.DeadlineDate }} }}
  </p>
 </div>
 <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666">
  <a href="{{ $DomainUrl }}/">
   <img src="{{ $LogoUrl }}" border="0"></img>
  </a>
 </div>
</body>
</html>

First Reminder

Code Block
languagexml
<html>
<body style="margin:0; padding:0">
 <div style="margin:1em">
  <p><b>{{ $Recipients }}</b>,</p>
  <p>{{ $WorkItem.Caption }} still waiting in your task list. Please review.</p>
  <p>
   <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a>
  </p>
  <p>{{ $WorkItem.Instructions }}</p>
  <p><u>Details</u>
   <br></br>
   <b>Form number</b> {{ $Instance.Number }},<br></br>
   {{ if $WorkItem.DeadlineDate then <b>Deadline date</b> {{ $WorkItem.DeadlineDate }} }}
  </p>
 </div>
 <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666">
  <a href="{{ $DomainUrl }}/">
   <img src="{{ $LogoUrl }}" border="0"></img>
  </a>
 </div>
</body>
</html>

Repeating Reminder

Code Block
languagexml
<html>
<body style="margin:0; padding:0">
 <div style="margin:1em">
  <p><b>{{ $Recipients }}</b>,</p>
  <p>{{ $WorkItem.Caption }} still waiting in your task list. Please review.</p>
  <p>
   <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a>
  </p>
  <p>{{ $WorkItem.Instructions }}</p>
  <p><u>Details</u>
   <br></br>
   <b>Form number</b> {{ $Instance.Number }},<br></br>
   {{ if $WorkItem.DeadlineDate then <b>Deadline date</b> {{ $WorkItem.DeadlineDate }} }}
</p>
 </div>
 <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666">
  <a href="{{ $DomainUrl }}/">
   <img src="{{ $LogoUrl }}" border="0"></img>
  </a>
 </div>
</body>
</html>

Deadline

Code Block
languagexml
<html>
<body style="margin:0; padding:0">
 <div style="margin:1em">
  <p><b>{{ $Recipients }}</b>,</p>
  <p>Your {{ $WorkItem.Caption }} task is deadlined and automatically closed.</p>
  <p>
   <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a>
  </p>
  <p><u>Details</u>
   <br></br>
   <b>Form number</b> {{ $Instance.Number }},<br></br>
  </p>
 </div>
 <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666">
  <a href="{{ $DomainUrl }}/">
   <img src="{{ $LogoUrl }}" border="0"></img>
  </a>
 </div>
</body>
</html>

Watch

Code Block
languagexml
<html>
<body style="margin:0; padding:0">
 <div style="margin:1em">
  <p><b>{{ $Recipients }}</b>,</p>
  <p>A new {{ $WorkItem.Caption }} task assigned to {{ $AssignedTo }}. This email is been sent for your information and you can find task in your watch list later.</p>
  <p>
   <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a>
  </p>
  <p>{{ $WorkItem.Instructions }}</p>
  <p><u>Details</u>
   <br></br>
   <b>Form number</b> {{ $Instance.Number }},<br></br>
   {{ if $WorkItem.DeadlineDate then <b>Deadline date</b> {{ $WorkItem.DeadlineDate }} }}
  </p>
 </div>
 <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666">
  <a href="{{ $DomainUrl }}/">
   <img src="{{ $LogoUrl }}" border="0"></img>
  </a>
 </div>
</body>
</html>

...

Info

Because of mail client notifications do not include any external link (except images) to resources like style sheets or scripts. Otherwise mail client may refuse to load resources because of security and privacy.

XSLT

Uses industry standard XSLT format but requires some technical skills. For more information please refer to https://www.google.com.tr/search?q=xslt

...