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 Reads a message.
 email:Email|email:Error? emailResponse = popClient->read();

read

(string folder)

returns Email | Error | ()

Reads a message.

 email:Email|email:Error? emailResponse = popClient->read();

Parameters

  • folder string (default DEFAULT_FOLDER)
  • Folder to read emails. The default value is INBOX

  • Return Type

    (Email | Error | ())
  • Anemail:Email if reading the message is successful, () if there are no emails in the specified folder, or else an email:Error if the recipient failed to receive the message