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

mailSend – PB Docs 126 – PowerBuilder Library

mailSend – PB Docs 126

mailSend PowerScript function

Description

Sends a mail message. If no message information is supplied,
the mail system provides a dialog box for entering it before sending
the message.

Controls

mailSession object

Syntax

Argument

Description

mailsession

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

mailmessage (optional)

A mailMessage structure

Return Values

mailReturnCode. Returns one of the following values:

  • mailReturnSuccess!

  • mailReturnFailure!

  • mailReturnInsufficientMemory!

  • mailReturnLoginFailure!

  • mailReturnUserAbort!

  • mailReturnDiskFull!

  • mailReturnTooManySessions!

  • mailReturnTooManyFiles!

  • mailReturnTooManyRecipients!

  • mailReturnUnknownRecipient!

  • mailReturnAttachmentNotFound!

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

Usage

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

For mailSend, mailOriginator! is not a valid value for the
Recipient property of the mailMessage object.
The valid values are mailto!, mailcc!, and mailbcc!. To specify
that the sender receive a copy of the message, use mailcc!.

Examples

These statements create a mail session, send a message,
and then log off the mail system and destroy the mail session object:

See also the mail examples in the samples supplied with PowerBuilder.

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