Obtains the handle of a mailSession object.
mailSession object
mailsession.mailHandle ( )
Argument |
Description |
---|---|
mailsession |
A mailSession object identifying the session for which you want the handle |
UnsignedLong. Returns the internal handle of the mail session object. If mailsession is null, mailHandle displays an error message.
After you have logged on, your mailSession has a valid handle. You can use that handle to call external mail functions. MAPI has additional functions that PowerBuilder does not implement directly.
Before calling mail functions, you must declare and create a mailSession object and call mailLogon to establish a mail session.
This statement returns the handle of the current mail session:
current_session. mailHandle()