DoAddAttachment - cMapiHandler
Adds an attachment to the list
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| sPathName | String | Contains the path plus the filename to the enclosure |
| sFileName | String |
Syntax
Procedure DoAddAttachment String sPathName String sFileName
Call Example
Send DoAddAttachment sPathName sFileName
Description
The DoAddAttachment procedure can be used to add an attachment to the list. Each time two items in the child object "oAttachmentsArray" will be created. One with the path name and one with the file name. A MAPI message can have multiple enclosures and this message adds the attachments to the internal list of attachments.
Example
Send DoAddAttachment To oMapiSession (sFilePath - sFileName) sFileName