This set of scripts show how to send an email encoded as a MIME type so you can transmit HTML email.
In this example we use a simplistic template engine (lte.lua) that uses LUA, naturally, as its scripting language. The template understand the following tokens.
- {{ }} - Will import a value into the output stream
- {% %} - execute a LUA code fragment
- {> >} - output the contents with HTML escape characters.
Here is what our TEMPLATE (relay.tmpl) looks like: