You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

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')}

Search results for "mail_add_attachment()"

mail_add_attachment()

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.

mail_add_attachment(fileNode [, name] )