mail_add_attachment()
Usage
mail_add_attachment(fileNode[, name])
Description
Adds a file (instances of File
) as an attachment to the mail. The name
parameter can be used to send the file with a different name than the filename in the Structr filesystem.
Example
${mail_add_attachment(first(find('File', 'name', 'static-file.txt')), 'renamed-static-file.txt')}