mailDeleteMessage – PB Docs 150

mailDeleteMessage PowerScript function

Description

Deletes a mail message from the user’s electronic
mail inbox.

Controls

mailSession object

Syntax

Argument

Description

mailsession

A mailSession object identifying the
session in which you want to delete the message

messageid

A string whose value is the ID of the
mail message to be deleted

Return Values

mailReturnCode. Returns one of the following values:

  • mailReturnSuccess!

  • mailReturnFailure!

  • mailReturnInsufficientMemory!

  • mailReturnInvalidMessage!

  • mailReturnUserAbort!

If any argument’s value is null, mailDeleteMessage returns null.

Usage

To get a list of message IDs in the user’s inbox,
call the mailGetMessages function. Before calling mail
functions, you must declare and create a mailSession object and
call mailLogon to establish a mail session.

Examples

Assume the DataWindow dw_inbox contains
a list of mail items (sender, subject, postmark, and message ID),
and that the mail session mSes has been created
and a successful logon has occurred. This script for the clicked
event for dw_inbox deletes the selected
message from the mail system:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x