Click here to Skip to main content
11,805,035 members (54,249 online)
Click here to Skip to main content

POP3 Library in C#

, 26 Sep 2003 143.3K 3.2K 41
Rate this:
Please Sign up or sign in to vote.
Complete POP3 Library with Attachment read and Save option


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.


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


About the Author

Web Developer
South Africa South Africa
No Biography provided

You may also be interested in...

Comments and Discussions

Questiongetting attachments from email Pin
RudyB2-Jan-12 1:32
memberRudyB2-Jan-12 1:32 
GeneralRecieveCallback errorThe I/O operation has been aborted because of either a thread exit or an application request Pin
ishika_d3110-Apr-09 13:03
memberishika_d3110-Apr-09 13:03 
GeneralThanks! Pin
Adam Crawford17-Oct-07 4:57
memberAdam Crawford17-Oct-07 4:57 
GeneralWrong reference to an object Pin
AlbinWorld4-Jan-06 23:28
memberAlbinWorld4-Jan-06 23:28 
GeneralRe: Wrong reference to an object Pin
AlbinWorld5-Jan-06 0:11
memberAlbinWorld5-Jan-06 0:11 
Generalit Doesnt work Pin
nazli7-Mar-05 1:00
membernazli7-Mar-05 1:00 
tappi3-Nov-04 17:51
susstappi3-Nov-04 17:51 
GeneralDon't funca Pin
japasofts12-Jun-04 15:00
memberjapasofts12-Jun-04 15:00 
GeneralCPOP3.cs Line 204 bug... Pin
Corea!9-Jun-04 17:01
sussCorea!9-Jun-04 17:01 
GeneralRe: CPOP3.cs Line 204 bug... Pin
Adam Crawford17-Oct-07 4:52
memberAdam Crawford17-Oct-07 4:52 
Questioncan i use this using Pin
gleceper8-Jun-04 16:21
sussgleceper8-Jun-04 16:21 
GeneralPOP3 Attachment, Please help me Pin
tungbui14-May-04 16:49
membertungbui14-May-04 16:49 
GeneralRe: POP3 Attachment, Please help me Pin
lesnikowski6-Nov-05 12:54
memberlesnikowski6-Nov-05 12:54 
GeneralPOP3 Bug Pin
tungbui11-May-04 17:48
membertungbui11-May-04 17:48 
GeneralDelete after read Pin
agus_ayala7-Mar-04 2:03
memberagus_ayala7-Mar-04 2:03 
GeneralAttachment Pin
dinu_3gee23-Feb-04 1:09
memberdinu_3gee23-Feb-04 1:09 
QuestionPOP3 with SSL??? Pin
xhris10-Feb-04 18:18
memberxhris10-Feb-04 18:18 
AnswerRe: POP3 with SSL??? Pin
Anonymous22-Feb-05 14:06
sussAnonymous22-Feb-05 14:06 
GeneralAttachment Pin
Thomas Phan30-Nov-03 16:07
memberThomas Phan30-Nov-03 16:07 
GeneralRe: Attachment Pin
Jeffrey Scott Flesher31-Dec-03 7:04
memberJeffrey Scott Flesher31-Dec-03 7:04 
GeneralRe: Attachment Pin
loop0716-Sep-04 16:34
memberloop0716-Sep-04 16:34 
GeneralRe: Attachment Pin
Jeffrey Scott Flesher5-Jul-05 9:07
memberJeffrey Scott Flesher5-Jul-05 9:07 
GeneralPlease Pin
Surya sekhar Bhattacharya3-Nov-04 18:04
sussSurya sekhar Bhattacharya3-Nov-04 18:04 
GeneralRe: Please Pin
Jeffrey Scott Flesher5-Jul-05 9:09
memberJeffrey Scott Flesher5-Jul-05 9:09 
GeneralRe: Attachment Pin
tomstrummer5-Jul-05 4:05
susstomstrummer5-Jul-05 4:05 
GeneralRe: Attachment Pin
Jeffrey Scott Flesher5-Jul-05 9:15
memberJeffrey Scott Flesher5-Jul-05 9:15 
GeneralDoesn't work in VS 1.0.3705 Pin
virabadrasana14-Nov-03 1:30
membervirabadrasana14-Nov-03 1:30 
GeneralState Machine locks up Pin
Scott Burgett12-Nov-03 11:47
memberScott Burgett12-Nov-03 11:47 
GeneralError in ParseMessage Pin
ottavio828-Oct-03 5:50
memberottavio828-Oct-03 5:50 
AnswerRe: Error in ParseMessage Pin
coach023-May-07 0:42
membercoach023-May-07 0:42 
GeneralBug Pin
smallguy7829-Sep-03 23:42
membersmallguy7829-Sep-03 23:42 
GeneralRe: Bug Pin
PramodKumarSingh30-Sep-03 18:33
memberPramodKumarSingh30-Sep-03 18:33 
GeneralGood job Pin
Saikat Sen29-Sep-03 16:49
memberSaikat Sen29-Sep-03 16:49 
GeneralRe: Good job Pin
Malby30-Sep-03 0:50
memberMalby30-Sep-03 0:50 
GeneralRe: Good job Pin
loop0716-Sep-04 16:30
memberloop0716-Sep-04 16:30 
General:-( Pin
lesnikowski27-Sep-03 13:02
memberlesnikowski27-Sep-03 13:02 
GeneralRe: :-( Pin
PramodKumarSingh30-Sep-03 18:09
memberPramodKumarSingh30-Sep-03 18:09 
GeneralRe: :-( Pin
pcmehta_hcl15-Oct-03 4:08
memberpcmehta_hcl15-Oct-03 4:08 
GeneralRe: :-( Pin
Lesnikowski15-Oct-03 10:10
memberLesnikowski15-Oct-03 10:10 
GeneralRe: :-( Pin
Ed Din ar Qadiyyeh20-Oct-03 15:01
memberEd Din ar Qadiyyeh20-Oct-03 15:01 
GeneralRe: :-( Pin
lesnikowski21-Oct-03 10:14
memberlesnikowski21-Oct-03 10:14 
GeneralRe: :-( Pin
pvialoux25-Aug-04 11:21
memberpvialoux25-Aug-04 11:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151002.1 | Last Updated 27 Sep 2003
Article Copyright 2003 by PramodKumarSingh
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid