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
| Name | Type | Required | Description | 
|---|---|---|---|
| template | string | Yes | ID of the email template that is being sent | 
| recipientType | string | Yes | ID of the recipient type configured for the template | 
| recipientId | string | Yes | |
| recipient | string | Yes | email address of the recipient | 
| sender | string | Yes | email address of the sender | 
| subject | string | Yes | Subject line of the email | 
| resendOf | string | No (default="") | |
| sendArgs | struct | No | Structure of args that were original sent to the email send() method | 
| layoutOverride | string | No (default="") | |
| customLayout | string | No (default="") |