ClearLog Method


Clears log file (if logging is on).

Consider calling this method each time your application starts or enters new cycle of processing. Otherwise, log file will increase in size with every SMTP session.


blnResult = ObjectName.ClearLog  
Parameters: None 
Return value As Boolean True if successful, False if logging is off or error occurred (path denoted by LogFilePath property is not accessible, file is locked, etc.)  

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.SMTP")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.SMTP")
'In ASP use Response.Write instead of MsgBox
Mailer.EnableLogging = True
Mailer.LogFilePath = "C:\my_log.txt"
Mailer.ClearLog
Mailer.LicenseKey = "put your license key here"

See Also:

EnableLogging Property
LogFilePath Property


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.