Is there a way to "pass a parameter" to an email script token?
We would like to pass a string to an email script from the email definition, in the same way the user defines a default value for the token, and thus be able to use that string in the velocity script.
Let's say we have an email script token called my.foo
This hypotetical token is meant to be used in the email by passing a "parameter" (let's suppose we call this parameter bar
)
Like this:
{{my.foo:bar=Hello World}}
<p>You passed: <strong>$bar</strong</p>
To get in the email text something like:
You passed: Hello World