Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

POP3 Library in C#

0.00/5 (No votes)
26 Sep 2003 3  
Complete POP3 Library with Attachment read and Save option

Introduction

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here