IMAP Invalid Credentials Error Despite Correct Configuration

I’m encountering an issue with connecting to my IMAP server. Despite having set the IMAP configuration, server, port, and other settings correctly, I keep receiving the error message: “Get IMAP Mail Messages: Invalid credentials ( failure ).”

I’ve double-checked my credentials (username and password) and verified the server settings. I’m still getting the same error.

Has anyone else encountered this issue or can offer guidance on how to resolve it? Any help would be greatly appreciated!

Thanks in advance!

Hi @Aakash_Sharma4

Have you configured the IMAP for your Mail Account. If not, configure the IMAP. Follow the below document,

After configured also not works, Update all the UiPath.Mail.activities package to latest version and keep the Lowest applicable version for the RunTimerule option in Manage packages.

Not works the above approaches, check the below thread,

Hope it helps!!

1 Like

@Aakash_Sharma4
Hello
Please check with the below points

  1. Two-Factor Authentication (2FA): If your email account has two-factor authentication enabled, you’ll need to create an app-specific password for UiPath to use. Refer to your email provider’s documentation on how to generate an app-specific password.

  2. Account Access Settings: Ensure that your email account settings allow access from less secure apps or IMAP access. Some providers (like Gmail) have settings to allow or block access from non-Google apps.

  3. Check IMAP Settings: Ensure that the IMAP settings (server, port, and security type) are correctly configured. Common configurations are:

  • Gmail:
    • IMAP server: imap.gmail.com
    • Port: 993
    • Security type: SSL/TLS
  • Outlook/Office 365:
    • IMAP server: outlook.office365.com
    • Port: 993
    • Security type: SSL/TLS
  • Yahoo:
    • IMAP server: imap.mail.yahoo.com
    • Port: 993
    • Security type: SSL/TLS
  1. Update UiPath Packages: Make sure that your UiPath.Mail.Activities package is up-to-date. There might be fixes or improvements in newer versions that could resolve your issue.

  2. Network Restrictions: Check if there are any network restrictions or firewall settings that might be blocking the connection to the IMAP server.

  3. Log and Debug: Use logging and debugging within UiPath to capture more detailed information about the error. This might give you more insights into what is going wrong.

1 Like

Thank you for your assistance. I have confirmed that IMAP is enabled and that UiPath.Mail.activities are updated. I have also double-checked the username and password.

However, I am encountering a problem: I am unable to locate the “Allow Secure apps” option in Gmail.

Could you please guide me on how to find this setting or suggest any alternative solutions?

Thank you!

Hi @Aakash_Sharma4

Check the below thread

Regards,

2 Likes

Thank you so much for your help! It’s working perfectly now.

1 Like

Thank you so much for your help! It’s working perfectly now

1 Like

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