Parameters
letter | letter handle |
fname | path to the file that is to be attached |
Description
This function attaches a file to the created electronic mail letter. The letter handle is returned by the LetterCreate
function.
The file must be specified with full path in the OS format (Windows, Linux). The file is searched for on the computer that called this function (can be called both by the client and server). If the file is not found or the server doesn't have sufficient privileges, the error number 508 will occur. It's necessary that the server may browse the folder that houses the file on Linux (privilege x).
If the FilePath
parameter is specified in the profile, the file must be present in some folder specified in this parameter, otherwise error number 514 occurs.
Function value
This function returns zero if successful, the error number otherwise.
Example
See