SetAttachment

Adds a file attachment to an email.

Syntax

bool SetAttachment (StrParamMW)

Parameters

The file’s path, name and extension. Smart Parameters are supported.

Returns

False if the file does not exist or cannot be attached. Otherwise, True.

Level

All levels.

Details

Attaches the specified file to the current email.
Example:
SetAttachment("h:\MyDir\MQSW\export\+@BATCHID+.txt")                  

This example attaches the Export file of the current batch to the email.