g4msmail_addAttachment
*//////////////////////////////////////////////////////////////*
* g4msmail_addAttachment - Add Attachment *
* *
* Input: *
* in_file [r] - The fully qualified path to the file to *
* attach. *
* in_fileName - The name of the file as it will appear in *
* the email. The default is the file name. *
* *
* *
* Output: *
* out_errMsg - The error message (if error exists). *
* *
* Returns: *
* -1 for error, number of attachments *
* *
*//////////////////////////////////////////////////////////////*
D g4msmail_addAttachment...
D PR 10i 0
D in_file 256 Const
D in_fileName 256 Const Options(*NOPASS)
D out_errMsg 256 Options(*NOPASS)
g4msmail_addAttachment is used to add an attachment to an email with the G4MSMAIL functions.
The maximum size of attachments is 16meg. Files larger than this will be ignored.
There is a maximum number of 100 attachments allowed.
Returns: total number of attachments for success, -1 for error.
Required Parameters:
File - Specify the fully qualified path to the file which should be located in the IFS to attach.
Optional Parameters:
File Name - The name of the file as it will appear in the email
Error Message (output) - Error message
Settable Variables:
no_attachment_action - Specify *ERR for this value to have this function return -1 if an attachment is not found.