Skip to main content

Get IMAP Mail Messages

Retrieves an IMAP email message from a specified server.

Options

  • Delete Messages: Specifies if the read messages should be marked for delete.
    • Type: System.Boolean
    • Required
  • Subject Contains Text: Text filter to search in subject title
    • Type: System.String
  • Ignore CRL: Specifies whether to ignore the Certificate Revocation List validation when connecting.
    • Type: System.Boolean
    • Required
  • Mark as Read: Specifies whether to mark retrieved messages as read. By default, this check box is cleared.
    • Type: System.Boolean
    • Required
  • Only Unread Messages: Specifies whether to retrieve only unread messages.
    • Type: System.Boolean
    • Required
  • Order by Date: Specifies how emails are sorted by date.
    • Type: System.Int32
    • Required
    • Dropdown Options:
      • Newest First
      • Oldest First
  • SecureConnection: Specifies the SSL and/or TLS encryption to be used for the connection.
    • Type: System.Int32
    • Required
    • Dropdown Options:
      • None
      • Auto
      • SSL On Connect
      • Start TLS
      • Start TLS When Available
  • Top: The number of messages to be retrieved starting from the top of the list.
    • Type: System.Int32
    • Required

Output

  • Messages: The retrieved messages as a collection of MimeMessage objects.
    • Type: System.Collections.Generic.IEnumerable<MimeKit.MimeMessage>

Host

  • From Folder: The Mail Folder where the message can be found. If empty Inbox will be used.
    • Type: System.String
  • Port: The port that the email message is to be sent through.
    • Type: System.Int32
    • Required
  • Server: The email server host that is to be used.
    • Type: System.String
    • Required

Common

  • Timeout: Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds(30 seconds).
    • Type: System.Int32
    • Required

Logon

  • Email: The email account used to send the message.
    • Type: System.String
  • Password: The password of the email account used to perform the action.
    • Type: System.String