prepareParameters()
Overview
public struct function prepareParameters(
required string template
, required string recipientType
, required string recipientId
, required struct args
, struct templateDetail
, array styles
, array detectedParams
)
Prepares params (for use in replacing tokens in subject and body) for the given email template, recipient type and sending args.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| template | string | Yes | ID of the template of the email that is being prepared |
| recipientType | string | Yes | ID of the recipient type of the email that is being prepared |
| recipientId | string | Yes | ID of the recipient |
| args | struct | Yes | Structure of variables that are being used to send / prepare the email |
| templateDetail | struct | No | Structure the template record |
| styles | array | No | Used to do style inlining in any prepared html when feature enabled |
| detectedParams | array | No | Parameters detected in the content that are required to be swapped out |