{* * This file gets included in various Smarty templates of source and action editors. * Provides a common editor for email templates. * * Expects parameters: * - template: required * - input_name: required * - variables: optional * - to_name: optional * - to_value: optional * - sourcefrom_name: optional * - sourcefrom_set: optional *} {$input_name = ifset($input_name, '')} {* Split template into parts *} {$template = ifset($template, '')} {$parts = explode('{SEPARATOR}', $template, 3)} {$body = array_pop($parts)} {$subject = array_pop($parts)} {$from = array_pop($parts)} {$uniqid = uniqid('t')}
[`From`]

[`It is recommended to specify an existing email address which you do not check for new mail as the sender’s address for such notifications; e.g., noreply@yourdomain.com. This will help minimize the number of redundant requests.`]
{if !empty($sourcefrom_name)}
{/if}
[`Subject`]
[`Text`]
{if !empty($variables)}
{foreach ifempty($variables, array()) as $k => $v}
{if $v}
{$v|escape}
{/if}
{/foreach}
{/if}