renderLayout()
Overview
public string function renderLayout(
required string layout
, required string emailTemplate
, required string blueprint
, required string type
, required string subject
, required string body
, string customLayout = ""
, string unsubscribeLink = ""
, string viewOnlineLink = ""
, struct templateDetail
)
Returns the rendering of an email layout with the given arguments.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| layout | string | Yes | ID of the layout to render |
| emailTemplate | string | Yes | ID of the email template that is being rendered within the layout |
| blueprint | string | Yes | ID of the email blueprint that the template uses |
| type | string | Yes | Type of render, either HTML or TEXT |
| subject | string | Yes | Subject of the email |
| body | string | Yes | Body of the email |
| customLayout | string | No (default="") | Optional reference of custom layout config to be applied |
| unsubscribeLink | string | No (default="") | Optional link for unsubscribing from emails |
| viewOnlineLink | string | No (default="") | Optional link for viewling email online |
| templateDetail | struct | No |