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
|
1 |
smtpclient.LogFile(string filepath{, boolean append}) |
|
Argument |
Description |
|---|---|
|
smtpclient |
A SMTP client object identifying the client in which you |
|
filepath |
The file path that stores the obtained operational log |
|
append (optional) |
Specifies whether the log information will be appended to True — (Default) The log information will be appended to False — The log information will cover the content of the |
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.
|
1 |
lnv_SmtpClient.LogFile("c:mail.log") |
The following example shows that the log information will cover the
content of the file.
|
1 |
lnv_SmtpClient.LogFile("c:mail.log",False) |
See also