Pop3DataSent Event
Occurs when data is sent to the POP3 server.

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public event DataTransferEventHandler DataSent

Value

Type: MailBeeDataTransferEventHandler
Remarks
Unlike LowLevelDataSent event, occurrence of this event indicates sending POP3-related data only. For instance, if the transmission channel is SSL-encrypted, LowLevelDataSent event indicates sending of any portion of encrypted data, while DataSent will be raised later to indicate the entire request (which was previously sent as one or several encrypted data chunks) has been sent. If the transmission channel is not encrypted or otherwise scrambled, DataSent and LowLevelDataSent are equivalent.
Examples
This sample prints all the data sent to the server during POP3 session into console.
using System;
using MailBee;
using MailBee.Pop3Mail;

class Sample
{
    // DataSent event handler.
    private static void OnDataSent(object sender, DataTransferEventArgs e)
    {
        Console.WriteLine("[" + System.Text.Encoding.Default.GetString(e.Data) + "]");
    }

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

        // Subscribe to the DataSent event.
        pop.DataSent += new DataTransferEventHandler(OnDataSent);

        // Do something which would produce some network traffic.
        pop.Connect("mail.domain.com");
        pop.Login("jdoe", "secret");
        pop.Disconnect();
    }
}
See Also