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

LogFile – PB Docs 2022 – PowerBuilder Library

LogFile – PB Docs 2022

LogFile

PowerScript function

Description

Gets operational log information to a file when sending an
email.

This function takes no effect when sending an email asynchronously.
You can use OnSendFinished to get the error log when sending an email
asynchronously.

Applies to

SMTPClient object in Objects and Controls

Syntax

Argument

Description

smtpclient

A SMTP client object identifying the client in which you
want to get the operational log information to a file.

filepath

The file path that stores the obtained operational log
information. If the file exists, the information will be
appended to it. If not, the file will be created.

append (optional)

Specifies whether the log information will be appended to
the file. Values are:

True — (Default) The log information will be appended to
the file.

False — The log information will cover the content of the
file.

Return value

Integer.

Returns 1 if it succeeds and -1 if it fails.

Examples

The following example shows that the log information will be
appended to the file.

The following example shows that the log information will cover the
content of the file.

See also

Send

SendAsync

SendAsyncCancel

SetProxy


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