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
public event ConnectedEventHandler Connected


Type: MailBeeConnectedEventHandler
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.
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);

See Also