Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
sessionContains a MAPI session handle returned by MAPILogon. If not specified a system default session will be initiated, if possible, or a sign-in dialog box will be displayed. In any case, MAPI will return to its previous state upon completion of the function.
parentContains the name of an OpenInsight parent window. If not specified any dialog box displayed will be application modal.
flagsContains information about how the message should be sent. It could be MAPI_LOGON_UI$, MAPI_NEW_SESSION$, MAPI_DIALOG$, or a combination of these flags.
  • MAPI_LOGON_UI$ indicates that MAPI should display a sign-in dialog box, if necessary. If the session parameter is specified this flag is ignored.
  • MAPI_NEW_SESSION$ indicates that MAPI should establish a new session and not attempt to share another MAPI client's session or the default session. If the session parameter is specified this flag is ignored.
  • MAPI_DIALOG$ indicates that the send message dialog box should be displayed.

The insert record MAPI_EQUATES contains these flags. You may combine flags by adding them together with an addition sign (+).

messageContains the record for the message which is to be sent. The message record structure is detailed in the following table. The from and date fields and the MAPI_UNREAD$ and MAPI_SENT$ flags are ignored when sending a message.

After the function completes successfully the message will be delivered to the recipients listed in the given message record or selected through the send message dialog.

Use the MAPI_EQUATES insert record for access to the values in the following table.

Column positionNamePurpose
1subjectThe subject of the message.
2fromThe sender of the message.
3To@VM-delimited list of the message's To: recipients.
4Cc@VM-delimited list of the message's CC: recipients.
5Bcc@VM-delimited list of the message's BCC: recipients.
6dateThe date the message was received.
7TextThe text of the message.
8TypeThe type of the message.
9FlagsThe attributes of the message. It could be MAPI_UNREAD$, MAPI_RECEIPT_REQUESTED$, MAPI_SENT$, or a combination of these flags.
  • MAPI_UNREAD$ indicates that the message has not been read.
  • MAPI_RECEIPT_REQUESTED$ indicates that the sender should be notified when the message is received.
  • MAPI_SENT$ indicates that the message has been sent.

The insert record MAPI_EQUATES contains these flags. You may combine flags by adding them together with an addition sign (+).

10Files@VM-delimited list of the names of files to be attached to the message.
11paths@VM-delimited list of the paths to files to be attached to the message.
12positions@VM-delimited list of the positions within the text of files to be attached to the message.

...