Clients - email : PopClient

Represents a POP Client, which interacts with a POP Server.

Constructor

__init

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

  • host string
  • Host of the POP Client

  • username string
  • Username of the POP Client

  • password string
  • Password of the POP Client

  • clientConfig PopConfig {}
  • Configurations for the POP Client

Remote Methods

read

Used to read a message.

read

(string folder)

returns Email | Error | ()

Used to read 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