How to resolve when IMAP Mail Messages obtains - Timed out while waiting for Mail Service to connect?
This article provides the resolution for error "Get IMAP Mail Messages: Timed out while waiting for Mail Service to connect" which might be obtained when trying to fetch mails from a Gmail account.
For fetching emails from the Gmail account through the IMAP protocol, make sure below requirements are first met:
- Is IMAP enabled? Follow the procedure at Check Gmail through Other Email Platforms
- Check if the connection details are correct
- Try using the latest Mail Activity package
- Create a custom app and generate a 16 digit token as per Sign In Using App Passwords
If still an error persists in UiPath, try fetching through the below PS script. This script will print the subject of first ten emails. Update the respective details in the PowerShell script
Follow the below procedure to get imapx.dll: You can download the imapx from Manage Packages in UiPath
- Install IMAPX
- After installation you will find the dll in the below location C:\Users\YourUsername\.nuget\packages\imapx\2.0.0.18\lib\net452
If the error "cannot be loaded because running scripts is disabled on this system" is obtained when fetching mails through the above PS script, talk to your admin or check Microsoft documentation to allow execution. Read Set Execution Policy .
If the issue is still not resolved, attach the results of execution of above PS script, Mail activity package version and the connection details and create a support ticket with UiPath Product Support.