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

mailAddress – PB Docs 126 – PowerBuilder Library

mailAddress – PB Docs 126

mailAddress PowerScript function

Description

Updates the mailRecipient array for a mail message.

Controls

mailSession object

Syntax

Argument

Description

mailsession

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

mailmessage (optional)

A mailMessage structure containing information
about the message. If you omit mailmessage,
mailAddress displays an Address dialog box.

Return Values

mailReturnCode. Returns one of the following values:

  • mailReturnSuccess!

  • mailReturnFailure!

  • mailReturnInsufficientMemory!

  • mailReturnUserAbort!

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

Usage

The mailRecipient array contains information about recipients
of a mail message or the originator of a message. The originator
is not used when you send a message.

If there is an error in the mailRecipient array, mailAddress displays
the Address dialog box so the user can fix the address. If you pass
a mailMessage structure that is a validly addressed message (such
as a message that the user received) nothing happens because the
addresses are correct.

If you do not specify a mailMessage, the mail system displays
an Address dialog box that allows users to look for addresses and
maintain their personal address list. The user cannot select addresses
for addressing a message.

Before calling mail functions, you must declare and create
a mailSession object and call mailLogon to establish
a mail session.

Examples

These statements create a mail session, send mail
with an attached TXT file, and then log off the mail system and
destroy the mail session object:

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