Description

Displays a standard send message dialog box containing the given files as attachments.

Syntax

status = MAPISendDocuments([parent][, files][, paths])

Parameters

The MAPISendDocuments function has the following parameters.

ParameterDescription
parentContains the name of an OpenInsight parent window. If not specified the dialog box will be application modal.
filesContains an @FM-delimited list of the names of files to be attached to the message.
pathsContains an @FM-delimited list of the paths to files to be attached to the message.

After the send message dialog completes successfully a message containing the given files will be delivered to the selected recipients.

Returns

1 for successful execution or 0 for failure.

If function execution fails, you can retrieve a text error message by calling the Get_Status() function. For example, to display an error message on the screen, include the following error handling routine in your code:

Get_Status(ErrMsg)

Msg(@window, ErrMsg)

See also

Get_Status()MAPISendMail()

Remarks

Subroutine DemoMAPISendDocuments(var)
*      Display send message dialog box for demo document
$INSERT MAPI_EQUATES
Declare Function MAPISendDocuments
Declare Subroutine Msg, Get_Status
if MAPISendDocuments(0, "demo.doc", "c:\doc\demo.doc") then
  Msg(@window, "Document successfully sent")
end else
  Get_Status(display)
  Msg(@window, display)
end
return
  • No labels