Sets the license key.
A string value which contains the license key which unlocks the component. This property is write-only.
You can unlock the component by either setting this property to the valid permanent or trial license key or by adding MailBee.Pop3Mail.Pop3.LicenseKey key in app.config, web.config, or machine.config file.
This property is static (Shared in Visual Basic). If not set in the config file, this property must be set before creating any instances of Pop3 class.
| Exception Type | Condition |
|---|---|
| MailBeeLicenseException | The license key is invalid. |
Setting this property and connecting to a POP3 server.
[C#] // To use the code below, import MailBee namespaces at the top of your code using MailBee; using MailBee.Pop3Mail; // The actual code (put it into a method of your class) Pop3.LicenseKey = "Permanent or trial license key here"; Pop3 pop = new Pop3(); pop.Connect("mail.domain.com"); pop.Disconnect();
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code Imports MailBee Imports MailBee.Pop3Mail ' The actual code (put it into a method of your class) Pop3.LicenseKey = "Permanent or trial license key here" Dim pop As New Pop3 pop.Connect("mail.domain.com") pop.Disconnect()Setting the license key in the config file and connecting to a POP3 server.
[C#] // To use the code below, import MailBee namespaces at the top of your code using MailBee; using MailBee.Pop3Mail; // The actual code (put it into a method of your class) Pop3 pop = new Pop3(); pop.Connect("mail.domain.com"); pop.Disconnect(); // XML config file (app.config, web.config, or machine.config): <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="MailBee.Pop3Mail.Pop3.LicenseKey" value="Permanent or trial license key here"/> </appSettings> </configuration> // In .NET 2.0, it can be <applicationSettings> instead of <appSettings>.
[Visual Basic] Imports MailBee Imports MailBee.Pop3Mail ' The actual code (put it into a method of your class) Dim pop As New Pop3 pop.Connect("mail.domain.com") pop.Disconnect() ' XML config file (app.config, web.config, or machine.config): <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="MailBee.Pop3Mail.Pop3.LicenseKey" value="Permanent or trial license key here"/> </appSettings> </configuration> ' In .NET 2.0, it can be <applicationSettings> instead of <appSettings>.
Pop3 Class | MailBee.Pop3Mail Namespace