Get IMAP Mail Messages: Application-specific password required error

Delete the Pwd variable from the Variables pane. Click the Get Password activity. Delete Pwd from the password activity. Put your cursor in the password field and press CTRL+K. Then type Pwd and press enter. It will create the variable for you with the correct datatype.

i have done everything but i don’t know what is going on :pensive: :pensive:

@Stuti_Dutta

Dont loose it…just follow carefully

  1. First allow imap setting on gmail and get the app password…the link provided above will help
    In getting it
  2. For creating a securestring variable create a variable and then click on the variable type …and you would see a drop down where you would select browse for types and search for Securestring and select it…Now you just need to assign the password value which is as string to it using New Net.Networkcredentials("","Passwordasstring").SecurePassword

Now the password is assigned to variable just assign thw variable username and pssword int heir fields and port and server are to be preocided which are again present in the link

Cheers

You can’t use Get Password. It encrypts the password you give it. That’s not correct. You can’t pass an encrypted password to the IMAP activity.

You aren’t supposed to be using the password for the Gmail account. This is what you’re supposed to be using.

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

Hi @Stuti_Dutta

The password has to be store in a secure string datatype variable.
Create a variable called Password in the variables panel change the variable type to secure string. If you can’t find it click on the browse for types and search for Secure String then click on the secure string like the below image.
image

Take an assign activity

-Assign -> PasswordVariable = New System.net.NetworkCredential("","Give your password here").SecurePassword

Then pass the password variable in the securepassword field in properties of Get IMAP Mail messages activity.

Hope it helps!!