MailBee. NET Objects Tutorials

Use MailBee.NET as visual components in Microsoft Visual Studio.NET

Main components of MailBee.NET Objects family can be put on the form which makes it easier to wire them to events.

First of all, the license key should be referenced in devenv.exe.config file inside <configuration> tag as shown below. This file is the config file of Visual Studio, it is located in Program files \ Microsoft Visual Studio XXXX \ Common7 \ IDE folder (where XXXX is ".NET 2003", "8", etc). The XML code below must be inserted in section of the file (obviously, you should use your license key instead of the shown one):

    <!-- License keys for Pop3, Imap and Smtp components -->
    <add key="MailBee.Pop3Mail.Pop3.LicenseKey" 
    <add key="MailBee.ImapMail.Imap.LicenseKey" 
    <add key="MailBee.SmtpMail.Smtp.LicenseKey" 

By the way, there is no need to specify license keys for the components you're not using.

Then, you should add MailBee.NET Objects to the Toolbox of Visual Studio. Start Visual Studio (or restart it if it was already started), click Toolbox, and then select Add\Remove Items. In the appeared dialog, select components you're going to use (Pop3, Imap and Smtp from MailBee.NET Objects assembly). After that, these components will appear in Toolbox panel. You can now use these components just like any other visual components.

Note: You should also specify the license keys in the config file of your project (such as app.config or web.config file). Refer to Using License Keys for more information on how to specify the license key in the project config file.