Source: Get IMAP Mail Messages Message: Invalid credentials (Failure) Exception Type: MailKit.Security.AuthenticationException RemoteException wrapping MailKit.Security.AuthenticationException: Invalid credentials (Failure)

In gmail you need to turn on the “Less secure app access”, this will allow UIPath to access gmail.
You can turn this on from the following: Google Account settings > Security > Less secure app access > on

7 Likes