Get IMAP Mail Messages: Application-specific password required error

Hello.
I am new to UiPath and i have one query.

Get IMAP Mail Messages: Invalid credentials (Failure)
i have this error in my program and i dont know how to remove this can you please explain.

1 Like

Hi @Stuti_Dutta

Did you solve the problem that you are facing ?

Regards

No i am still stuck on that problem

Can you share any kinda screenshot of your error or something ???

Kindly check with these pls
—Username and password of the user mentioned in the property panel of IMAP mail activity
—In ur gmail Accounts settings Turn on “Allow Secure apps” and try the workflow.
—also make sure that IMPA is enables

—and finally here you go on how to create app password in gmail for UiPath

https://docs.uipath.com/studio/standalone/2022.10/user-guide/enabling-gmail-for-email-activities

1 Like

Welcome @komal.dole1

How is UiPath studio going with you? Are you able to solve your problems that you are facing?

Regards

Get IMAP Mail Messages: Application-specific password required: Sign in with app passwords - Google Account Help (Failure)
now i am getting this error


this is the error i m getting

@Stuti_Dutta

Please check the credentials you have passed

Regards

Pass the Password in the Secure password field in the Get IMAP Mail messages activity properties. Because the Get password activity output is Secure Password.

Hope it helps!!


still it show an error

Change the Pwd variable type to secure string

@Stuti_Dutta

you should make the variable type as secure string in variable panel.

regards

Hi @Stuti_Dutta

Can you give a try by giving the Password (Hardcoded)directly in the Properties Panel whether it is working or not.

Hope it helps!!

@Stuti_Dutta

Click on the variable panel and select the variable and in the dropdown select the browse for types and in the search filed change the variable type.

Regards

Hi @Stuti_Dutta

This is the way to convert string to secure string

New System.Net.NetworkCredential(string.Empty, Pwd).SecurePassword

@Stuti_Dutta

If you are using gmail then you need to use app password and not your normal gmail password here

please check this
https://docs.uipath.com/studio/standalone/2022.10/user-guide/enabling-gmail-for-email-activities

cheers

Get IMAP Mail Messages: Application-specific password required: Sign in with app passwords - Google Account Help (Failure)

@Stuti_Dutta

What password are you using?

Cheers