replaceParameterTokens()
Overview
public string function replaceParameterTokens(
required string text
, required struct params
, required string type
)
Replaces parameter tokens in strings (subject, body) with passed in values.
Arguments
Name | Type | Required | Description |
---|---|---|---|
text | string | Yes | The raw text that contains the parameter tokens |
params | struct | Yes | A struct of params. Each param can either be a simple value or a struct with simple values for `html` and `text` keys |
type | string | Yes | Either 'text' or 'html' |