prepareAttachments()

Overview

public array function prepareAttachments(
      required string template
    ,          struct args    
)

Runs an email template's 'prepareAttachments' handler action to prepare dynamic attachments for the email send.

Arguments

NameTypeRequiredDescription
templatestringYesThe template whose attachments are to be prepared
argsstructNoA struct of args that have been passed to the email sending logic that will inform the building of this email