Versions Compared

Key

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

...

Code Block
languagexml
titleMessage Body Template
linenumberstrue
#envVariable.template#

In this article, we are using the environment variable as a means to store the email template, but we can retrieve it anywhere else using other hash variables.

For example, we can store it in a specific form row (Record ID = 0) from the table named "setup".  You may also want to add "noescape" so that the returned template would stay intact. (Read more about Escaping the Resultant Hash Variable). We will then use Form Binder Hash Variable to retrieve it.

Code Block
languagexml
titleMessage Body Template
linenumberstrue
#form.setup.template[0]?noescape#

With this plugin, we can now modify the template without the need to modify each and every email tool.

JOGET OSS

The plugin is available open-source at  jogetoss/email-tool-with-template.