Clients - email : ImapClient

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

Remote Methods

read

Reads a message.

read

(string folder)

returns Email | Error?
Isolated Function

Reads a message.

 email:Email|email:Error emailResponse = imapClient->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