Click or drag to resize

Hello World Example

After installing a component (to download component, click here), it is installed in GAC (Global Assembly Cache).

To use GemBox.Email follow these steps:

  • Create a new .NET project (or use the existing one).

  • Use Add Reference dialog to add a new reference to the DLL with GemBox.Email name. It should be under .NET tab.

  • Import GemBox.Email namespace: using GemBox.Email; for C# or Import GemBox.Email for VB.NET.

  • Set license key to use GemBox.Email in a Free mode: ComponentInfo.SetLicense("FREE-LIMITED-KEY"); for C# or ComponentInfo.SetLicense("FREE-LIMITED-KEY") for VB.NET.

Now you can write your application specific email code.


Using GemBox.Email component is easy and straightforward. The following code shows how to create a download message using PopClient:

using (PopClient pop = new PopClient("<ADDRESS> (e.g."))
    // Connect to mail server and authenticate
    pop.Authenticate("<USERNAME>", "<PASSWORD>");

    // Download message with sequence number 1 (first one) and write its body
    MailMessage message = pop.GetMessage(1);