POP3 Library is an implementation of POP3 protocol. This library supports attachments within the messages and uses delegates in C# to provide with all the necessary feedback to the user of the library.
POP3 events from the library are passed to the client application by means of delegates:
public delegate void POP3Error(string errorMsg);
public delegate void
POP3MsgRetrivalStatus(int MsgNumber,int MsgSize,int MsgRetsize);
public delegate void POP3Complete();
public delegate void POP3MsgComplete(int MsgNumber,string MsgHeader);
The simple interface provided by the library can be used by any GUI application to get the POP3 messages.
public POP3(string UserName,string Password,string Server,bool DelAfterRead) is the constructor, which accepts the username, password, server, and property to delete the message after read.
A sample application to use the library is provided with this article.