Description

Retrieves IMAP email messages from the specified server.




Attributes

Output

  • MailMessages - The retrieved messages as a collection of MailMessage objects.

Logon

  • Email - The email account used to get the message.

  • Password - The password of the email account used to get the message.

Host

  • Port - The port used to get the email message.

  • Server - The email server host to be used.

Options

  • Top - The number of email messages to be retrieved starting from the top.

Common

  • ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.

Misc

  • DisplayName - Renames the activity.


Example

  1. Create a Select.Collections.Generic.List<System.Net.Mail.MailMessage> variable called mailList.
  2. Add a Get IMAP Mails activity inside the initial Sequence.
  3. In the Get IMAP Mails MailMessages field under Attributes, add the mailList variable.
  4. In the Get IMAP Mails Port field, write 993.
  5. In the Get IMAP Mails Server field, write imap.gmail.com.
  6. In the Get IMAP Mails Email field, write the email address wherein the mails would be retrieved from. For this example, it would be from nicolerivers@gmail.com.
  7. In the Get IMAP Mails Password field under Attributes, write the password of the account. You can also use another activity called Get Password to add security to your workflow.
  8. In the Get IMAP Mails Top field under Attributes, write 10

    The use case should look as the following screenshot:



After execution, the latest 10 IMAP mails from nicolerivers@gmail.com should be stored in the mailList variable.