prepareParameters()

Overview

public struct function prepareParameters(
      required string template      
    ,          struct args          
    ,          struct templateDetail
    ,          array  detectedParams
)

Runs an email template's 'prepareParameters' handler action to prepare dynamic parameters for the email render.

Arguments

NameTypeRequiredDescription
templatestringYesID of the template whose parameters are to be prepared
argsstructNoA struct of args that have been passed to the email sending logic that will inform the building of this email
templateDetailstructNoStruct with details of the template whose parameters are to be prepared
detectedParamsarrayNoArray of parameter names that have been detected in the content - providers can use this to restrict the rendering of parameters to only those necessary