mailRecipientDetails PowerScript function
Description
Displays a dialog box with the specified recipient’s
address information.
Controls
mailSession object
Syntax
1 |
<span>mailsession</span>.<span>mailRecipientDetails</span> ( <span>mailrecipient</span> {, <span>allowupdates</span> } ) |
Argument |
Description |
---|---|
mailsession |
A mailSession identifying the session |
mailrecipient |
A mailRecipient structure containing |
allowupdates (optional) |
A boolean indicating whether updates |
Return Values
mailReturnCode. Returns one of the following values:
-
mailReturnSuccess!
-
mailReturnFailure!
-
mailReturnInsufficientMemory!
-
mailReturnUnknownRecipient!
-
mailReturnUserAbort!
If any argument’s value is null, mailRecipientDetails returns null.
Usage
The effect of setting allowupdates to true depends
on the mail system and the user’s privileges.
Before calling mail functions, you must declare and create
a mailSession object and call mailLogon to establish
a mail session.
Examples
This example gets the message IDs from the user’s
inbox and reads the first message. It then calls mailRecipientDetails to
display address information for the first recipient. Recipient is
an array of structures and a property of mailMessage. Each array
element is one of the message’s recipients. The example
does not check how many values there are in the message ID or recipient
arrays and it assumes that the application has already created a mailSession
object and logged on:
1 |
mailMessage msg |
1 |
integer n |
1 |
long c_row |
1 |
1 |
mSes.mailGetMessages() |
1 |
mSes.mailReadMessage(mSes.MessageID[1], & |
1 |
msg, mailEnvelopeOnly!, FALSE ) |
1 |
mSes.<span>mailRecipientDetails</span>(msg.Recipient[1]) |