MailBee.NET Objects  

Using License Keys

Trial license key

During downloading MailBee.NET Objects package, you can get a trial license key which allows you to evaluate MailBee.NET Objects in fully-functional mode for a period of 30 days. You can also get the trial key using Trial Key Request form.

Permanent license key

When you purchase a license for MailBee.NET Objects library or any individual part of this library (such as MailBee.NET POP3), you receive a permanent license key which allows you to use the licensed components for an unlimited period of time.

Note   There are no trial or permanent versions of MailBee.NET Objects library. Single version of the package is used in both trial and permanent mode. The status of whether the library is working in trial or permanent mode is fully controlled by the license key.

Assigning the license key

The license key (either trial or permanent) needs to be specified either in the config file (such as app.config, web.config, machine.config) or in the static (Shared in Visual Basic) property MailBee.Global.LicenseKey. Setting the license key in the config file is the preferred method (unless you need to redistribute the application and thus hide the license key from the end user).

  1. Setting the license key in the config file (app.config, web.config, machine.config):
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    	<appSettings>
    		<!-- License key for MailBee.NET -->
    		<!-- Note that MN700-0123456789ABCDEF-0123 is not a real key. Use your key instead. -->
    		<add key="MailBee.Global.LicenseKey" value="MN700-0123456789ABCDEF-0123"/>
    	</appSettings>
    </configuration>
    Note   You should NOT attempt to specify the license key in appname.exe.config file created by Visual Studio in Debug or Release folder of the project. Visual Studio overwrites this file during rebuilding the project.
  2. Setting the license key using LicenseKey property (you should set this property before creating any instances of the licensed component):
    MailBee.Global.LicenseKey = "MN700-0123456789ABCDEF-0123";
    If you redistribute the application to third-parties without the source code, this is the preferred method of hiding the license key from end users.
  3. Placing the license key into Windows registry (the license key will be saved in the registry in the encoded form, thus you can also use this method in case if you need to redistribute the application). Make sure, however, the application will have the permission to read Windows registry (by default, ASP.NET applications may have some limitations on reading the registry under certain Trust levels).

    To put the license key into the registry, you can use SaveKey or SaveKeyGui utilities which are located in MailBee.NET Objects installation folder. You can quickly start SaveKeyGui utility by clicking "Save license key to registry" item in MailBee.NET Objects group of Start/Programs menu.

    SaveKeyGui provides friendly interface to the user while SaveKey console application is intended to be used by installation programs. If you need to put the license key into Windows registry programmatically, call SaveKey utility with parameters. To learn how to use this utility, run it in a command-line not specifying any parameters.

    SaveKey utility also has an option to put the license key in machine.config file (although it's not recommended to use this option since the machine.config file will be reformatted).

    Note You should use "Run as Administrator" option under Windows Vista and above in order to use SaveKey and SaveKeyGui utilities.

 


Send feedback to AfterLogic

Copyright © 2006-2012 AfterLogic Corporation. All rights reserved.