Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

mailDeleteMessage – PB Docs 2021 – PowerBuilder Library

mailDeleteMessage – PB Docs 2021

mailDeleteMessage

PowerScript function

Description

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

Applies to

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 value

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

mailGetMessages

mailLogon


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