createEmailLog()

Overview

public string function createEmailLog(
      required string template      
    , required string recipientType 
    , required string recipientId   
    , required string recipient     
    , required string sender        
    , required string subject       
    ,          string resendOf       = ""
    ,          struct sendArgs      
    ,          string layoutOverride = ""
    ,          string customLayout   = ""
)

Creates an email log entry and returns its ID (useful for future status updates to email delivery)

Arguments

NameTypeRequiredDescription
templatestringYesID of the email template that is being sent
recipientTypestringYesID of the recipient type configured for the template
recipientIdstringYes
recipientstringYesemail address of the recipient
senderstringYesemail address of the sender
subjectstringYesSubject line of the email
resendOfstringNo (default="")
sendArgsstructNoStructure of args that were original sent to the email send() method
layoutOverridestringNo (default="")
customLayoutstringNo (default="")