Skip to content

Simple and small library for retrieving messages from Post Office Protocol version 3 (POP3) servers

Notifications You must be signed in to change notification settings

CriGoT/pop3dotnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POP3.NET is a simple and small library for retrieving messages from Post Office Protocol version 3 (POP3) servers.

How to use

- Connect to Pop3 Server:
	Pop3Client pop3Client = new Pop3Client( );
	pop3Client.Connect( server, userName, password, true );

- Retrive message list:
	List<Pop3Message> messages = pop3Client.List( );

-Retrive messages:
	foreach ( Pop3Message message in messages )
	{ 
		pop3Client.Retrieve( message );
	
		Console.WriteLine( "\t* MessageID: {0}", message.MessageId );
		Console.WriteLine( "\t* Date: {0}", message.Date );
		Console.WriteLine( "\t* From: {0}", message.From );
		Console.WriteLine( "\t* To: {0}", message.To );
		Console.WriteLine( "\t* Subject: {0}", message.Subject );
	} 

- Disconnect from the server:
	pop3Client.Disconnect( );

About

Simple and small library for retrieving messages from Post Office Protocol version 3 (POP3) servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%