Set Attachments VI
- Updated2025-07-30
- 2 minute(s) read
Sets a list of files that you want to include with the email. This VI overwrites any attachment values that you specify before this VI executes.

Inputs/Outputs
handle in
—
handle in specifies an SMTP client handle that references system resources that LabVIEW uses to make SMTP requests. You can create an SMTP client handle using the Open Handle VI.
attachments
—
attachments specifies an array where each element is the path to a file you want to include with the email. LabVIEW opens and transmits the file when the Send Email VI executes using the handle that handle out returns.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
handle out
—
handle out returns an SMTP client handle that references system resources that LabVIEW uses to make SMTP requests. You can wire this output to the handle in input of other SMTP Email VIs. Use the Close Handle VI to dispose of the handle and free system resources when you no longer need the handle.
error out
—
error out contains error information. This output provides standard error out functionality. |
handle in
—
attachments
—
error in (no error)
—
handle out
—
error out
—