Get IMAP mail messages - Invalid credentials (Failure)

MailKit.Security.AuthenticationException: Invalid credentials (Failure)

Are you enabled the IMAP for the respective email address?
Provide us a screenshot with IMAP configuration in UiPath Studio (Properties panel).

This should look like an IMAP configuration for reading the Spam folder content.

  1. Navigate to
  2. Sign in using the Gmail e-mail address.
  3. From the Select App drop-down list, select Mail.
  4. From the Select Device drop-down list, select Windows Computer.

  1. Click Generate. The Generated App Password window containing an app password is displayed.
  2. Copy the generated app password to the Clipboard. This is your IMAP Password to use in the Get IMAP mail messages tab.

How to enable IMAP in Gmail: Here Are the IMAP Settings You Need to Set Up Gmail

Let us know if this helped.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.