EnableLogging Property
Set EnableLogging to True to enable logging
POP3 session into log file.
By default logging is turned off because it slightly reduces performance. Logging
is recommeneded for debug purposes only.
Value Type: | Boolean | |
Parameters: | None | |
Remarks: | You can enable logging on even before assigning license key (for example, to determine how many days of trial period have gone up to date) |
Usage example:
Dim Mailer 'Using visual basic to create object Set Mailer = CreateObject("MailBee.POP3") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.POP3") '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" Mailer.ServerName = "mailserver.com" Mailer.UserName = "MyName" Mailer.Password = "MyPassword" Mailer.Connect If Mailer.Connected Then MsgBox "Connected successfully" Mailer.Disconnect End If
See Also:
ClearLog Method
LogFilePath Property
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.