Ends the mail session, breaking the connection between the PowerBuilder application and mail. If the mail application was already running when PowerBuilder began the mail session, it is left in the same state.
mailSession object
mailsession.mailLogoff ( )
Argument |
Description |
---|---|
mailsession |
A mailSession object identifying the session from which you want to log off |
mailReturnCode. Returns one of the following values:
mailReturnSuccess!
mailReturnFailure!
mailReturnInsufficientMemory!
To release the memory used by the mailSession object, use the DESTROY keyword after ending the mail session.
Before calling mail functions, you must declare and create a mailSession object and call mailLogon to establish a mail session.
This statement terminates the current mail session:
current_session. mailLogoff()
DESTROY current_session