Versions Compared

Key

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

...

The objects defined above are adressed with the object name and the field name.

e.g.

Code Block
document{$document.name}
receiver{$receiver.firstname}
envelope{$envelope.id}
sender{$sender.encryptedId}
{$envelope.url}

For date objects, the format of the date must be provided.

e.g

Code Block
${envelope.url.dueDate?string("dd-MM-yyyy")}
${document.dueDate?string("dd.MM.yyyy")}

Please note that not all fields are present in every email, so it is advised to wrap them with if-statements as followed:

...

The template names must be set as described above. The mail_subject may be empty (see below). The locale must correspond to the locale in the file name.

Code Block
INSERT INTO `frigg_newviewer``frigg`.`mail_template`
(`mail_type_id`,
`file_html`,
`file_text`,
`mail_subject`,
`template_name_html`,
`template_name_text`,
`locale`)
VALUES
(<{mail_type_id: }>,
<{file_html: }>,
<{file_text: }>,
<{mail_subject: }>,
<{template_name_html: }>,
<{template_name_text: }>,
<{locale: }>);

Example for mail_type 1 (notify_signers):

Code Block
INSERT INTO `frigg_newviewer``frigg`.`mail_template`
(`mail_type_id`,
`file_html`,
`file_text`,
`mail_subject`,
`template_name_html`,
`template_name_text`,
`locale`)
VALUES
(1,
BLOB,
BLOB,
'example subject',
'notify_signers_mail_html_de.ftl',
'notify_signers_mail_text_de.ftl',
'de');

...