Connecting to IMAP Server

[ ]

Connecting with IMAP Server described how to connect to an IMAP server in four simple steps:

  1. Create an instance of the ImapClient class.
  2. Specify the hostname, username and password.
  3. Specify the port.
  4. Specify the Security Options.

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

  • Set Security Options to SSLImplicit.

The following code snippet shows how to

  1. Set a username, password and port.
  2. Set security option.