setContext()

Overview

public void function setContext(
      required string recipientType
    , required string recipientId  
    ,          string templateId    = ""
    ,          struct template     
)

Sets the context for the email send.

Arguments

NameTypeRequiredDescription
recipientTypestringYesThe email system recipient type that is being sent to
recipientIdstringYesThe ID of the recipient that is being sent to
templateIdstringNo (default="")The ID of the template being rendered/sent
templatestructNoStruct with details of the template being rendered/sent