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

NameTypeRequiredDescription
textstringYesThe raw text that contains the parameter tokens
paramsstructYesA struct of params. Each param can either be a simple value or a struct with simple values for `html` and `text` keys
typestringYesEither 'text' or 'html'