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 unsubscribeLink = ""
    ,          string viewOnlineLink  = ""
    ,          struct templateDetail 
)

Returns the rendering of an email layout with the given arguments.

Arguments

NameTypeRequiredDescription
layoutstringYesID of the layout to render
emailTemplatestringYesID of the email template that is being rendered within the layout
blueprintstringYesID of the email blueprint that the template uses
typestringYesType of render, either HTML or TEXT
subjectstringYesSubject of the email
bodystringYesBody of the email
unsubscribeLinkstringNo (default="")Optional link for unsubscribing from emails
viewOnlineLinkstringNo (default="")Optional link for viewling email online
templateDetailstructNo