Using MAPI

To use MAPI, you create a MailSession object, then use the MailSession functions to manage it.

For example:

MailSession PBmail
PBmail = CREATE MailSession

PBmail.MailLogon(...)
... // Manage the session: send messages,
... // receive messages, and so on.
PBmail.MailLogoff()

DESTROY PBmail

You can use the Browser to get details about the attributes and functions of the MailSession system object, the attributes of the mail-related structures, and the valid values of the mail-related enumerated datatypes.

For information about using the Browser, see the PowerBuilder Users Guide. For complete information about the MailSession functions, see the PowerScript Reference. For complete information about MAPI, see the documentation for your MAPI-compliant mail application.