Skip to end of metadata
Go to start of metadata
Contents Summary
  

Connecting to POP3 Server

The Pop3Client class allows applications to manage email boxes using the Post Office Protocol, Version 3 (POP3). To connect to a server, use the Pop3Client class. The Pop3Client class is the major entry for developers who want to add POP3 management to their .NET applications. This article explains how to use it. To connect to a POP3 server:

  1. Create an instance of the Pop3Client class.
  2. Specify the host, username, and password in the Pop3Client instance.

The following code snippet shows you how to connect with the POP3 server.

 

Connecting to SSL server

Connecting to a POP3 Server described how to connect to a POP3 server in three simple steps:

  1. Create an instance of the Pop3Client class.
  2. Specify the host, username, and password.

The process for connecting to an SSL enabled POP3 server is similar but requires that you set another few properties:

To connect to an SSL enabled POP3 server, use the Pop3Client class and set the SecurityOptions and Port properties. The following code snippet shows you how to connect to an SSL enables POP3 server.

 

Connecting with an APOP Server

POP stands for Post Office Protocol. APOP stands for Authenticated Post Office Protocol. APOP is an extended version of the POP3 server setting that encrypts your username and password and uses an authentication mechanism designed to protect your POP3 account's password when checking email. APOP authentication does not require the account password to be sent as plain text to the POP3 mail server.

Connecting to Server via Proxy

Proxy servers are very common for communicating with the outside world. In such cases, proxy addresses are used for email clients to access mailboxes over the Internet. Aspose.Email provides support for versions 4, 4a and 5 of the SOCKS proxy protocol. This article provides a working sample of retrieving email using a proxy mail server. To retrieve email via a proxy server:

  1. Initialize Proxy with the required information, that is, proxy address, port, and SOCKS version.
  2. Initialize Pop3Client with the host address, user name, password, and any other settings.
  3. Set the client's Proxy property to the Proxy object created above.

The following code snippet shows you how to retrieve email via proxy server.

Connecting to Server via HTTP Proxy

Labels
  • No labels