EnableLogging Property


Set EnableLogging=True to enable logging SMTP 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.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:

ClearLog Method
LogFilePath Property


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