Knowledge Base

How to add MailBee.NET Objects in my .NET-based project?

In Visual Studio .NET, follow the steps below (it's assumed your Visual Studio .NET project is named EmailApp):

1. In the Solution Explorer, right-click the project name (EmailApp), and select Add Reference command in the context menu.

2. In the appeared Add Reference dialog, find MailBee.NET Objects for your .NET Framework version (in most cases, you'll have only a single item there unless you also installed MailBee.NET Objects for .NET 1.1). If you have a newer version of MailBee.NET.dll (more recent than the one which came with the installer), you can click Browse button and manually locate MailBee.NET.dll file. Then double-click the reference to add it into the list and click OK. Now MailBee.NET Objects library gets referenced from your application.

3. In the properties of the reference added, make sure Copy Local setting is True.

To reference MailBee.NET Objects library in non-Visual Studio .NET application, you should manually upload MailBee.NET.dll file into the /bin folder under the root folder of your application. If there is no /bin folder, you should create it first.

The application referencing MailBee.NET Objects library in such a way can take advantage of XCOPY deployment.

Once MailBee.NET Objects library is referenced from your application, the next step is to import namespaces declared in the library into your application as shown in samples in MailBee.NET Objects documentation or in the demo projects shipped with MailBee.NET Objects.

Now, you may start developing your application powered by MailBee.NET Objects.