Included in the source code is a demonstration project (Pop3Demo), which provides an implementation reference.

The first thing you need to do to use the Pop3Client is include a reference to Pop3Client.dll in your project. Once this reference is included, you may wish to add a using directive to your source code:

using SectorPoint.Net.Mail;

To instantiate a new connection to a POP3 server you would create a new Pop3Client object:
Pop3Client popClient = new Pop3Client( "mail.mydomain.com", 110, "mike", "superSecretPassword", false );

You can also configure the server and (optionally) user information via your application config file:
<system.net>
	<mailSettings>
		<pop3>
			<network host="mail.mydomain.com" port="110" useSsl="false" />
		</pop3>
	</mailSettings>
</system.net>

Here's an example that includes the user name and password (this would make more sense for applications reading from only one maildrop):

<system.net>
	<mailSettings>
		<pop3>
			<network host="mail.mydomain.com" port="110" useSsl="false" user="mike" password="superSecretPassword" />
		</pop3>
	</mailSettings>
</system.net>

Last edited Sep 1, 2010 at 6:38 PM by MikeJohnson, version 4

Comments

No comments yet.