Clients - email : ImapClient

Represents an IMAP Client, which interacts with an IMAP Server.

Constructor

__init

(string host, string username, string password, ImapConfig clientConfig)

  • host string
  • Host of the IMAP Client

  • username string
  • Username of the IMAP Client

  • password string
  • Password of the IMAP Client

  • clientConfig ImapConfig {}
  • Configurations for the IMAP Client

Remote Methods

read

Reads a message.

read

(string folder)

returns Email | Error | ()

Reads a message.

Parameters

  • folder string (default DEFAULT_FOLDER)
  • Folder to read emails

  • Return Type

    (Email | Error | ())
  • AnEmail in success and Error if failed to receive the message to the recipient