LicenseKey Property


License Key of your copy of MailBee.SMTP component.

This property must be set to correct value in order to successfully run MailBee.SMTP object. When Connect or SendToQueue methods are called, they check LicenseKey first. If LicenseKey is invalid or expired, the operation is aborted.


Value Type: String
Parameters: None 
Remarks: This property is write-only

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"
If Mailer.Licensed Then
  MsgBox "SMTP object is ready for use"
Else
  MsgBox Mailer.ErrDesc
End If

See Also:

Licensed Property
ErrDesc Property
EnableLogging Property
LogFilePath Property


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