Pop3Connected Event
Occurs when the connection with the server is successfully established.

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public event ConnectedEventHandler Connected

Value

Type: MailBeeConnectedEventHandler
Remarks
This event indicates successful completion of the connection procedure, while SocketConnected event (occurs before Connected) indicates the connection request from MailBee was accepted by the server, and the POP3 connection procedure will now begin.
Examples
This sample uses Connected event to report the successful connection status into console.
using System;
using MailBee;
using MailBee.Pop3Mail;

class Sample
{
    // Connected event handler.
    private static void OnConnected(object sender, ConnectedEventArgs e)
    {
        Console.WriteLine("Successfully connected to the server.");
    }

    // The actual code.
    static void Main(string[] args)
    {
        Pop3 pop = new Pop3();

        // Subscribe to Connected event.
        pop.Connected += new ConnectedEventHandler(OnConnected);

        pop.Connect("mail.domain.com");
        pop.Disconnect();
    }
}
See Also