Skip to end of metadata
Go to start of metadata
 

The code in below examples uses some methods defined in Common Utilities.

Email Container

EmailContainer class allows to extract a text from remote email servers. EmailContainer class implements IContainer interface.

At this time EmailContainer supports the following email servers:

  • Exchange Web Service
  • Post Office Protocol (POP)
  • Internet Message Access Protocol (IMAP)

The information about an email server is passed by EmailConnectionInfo class. EmailConnectionInfo class the following static methods to create an instance of itself:

  • CreateEwsConnectionInfo - for Exchange Web Service
  • CreatePopConnectionInfo - for Post Office Protocol (POP)
  • CreateImapConnectionInfo - for Internet Message Access Protocol (IMAP)

These methods accept the following parameters:

Name
Exchange
POP
IMAP
Description
mailboxUri+  The URI of the mailbox.
host ++The URI of the server
port ++The port of the server
username+++The username.
password+++The password.
domain+  Optional. The domain name.

The following sections show how to retrieve emails from different email servers.

Extract Emails from Microsoft Exchange Server

Create Connection Info

Retrieve List of Emails using Entities Property

 

Retrieve an Email using OpenEntityStream Method

Extract Email using IMAP Protocol

Create Connection Info

Retrieve List of Emails using Entities Property

Below is the code to show how to retrieve emails from email server by IMAP protocol using Entity property.

Retrieve an Email using OpenEntityStream Method

Below is the code to show how to retrieve an email by IMAP protocol using the OpenEntityStream method.

Extract Email using POP3 Protocol

Create Connection Info

Retrieve List of Emails using Entities Property

Below is the code to show how to retrieve emails from email server by POP3 protocol using Entity property.

Retrieve an Email using OpenEntityStream Method

Below is the code to show how to retrieve an email by POP3 protocol using the OpenEntityStream method.

Labels
  • No labels