Get IMAP Mail gets invalid credentials error

“get imap mail” activity not working getting a credentials error
error
it was working before with no errors for about a month and 2 hrs ago it starts getting this error
i tried the credentials manually and it is working.
gmail is enabled with IMAP Connection and less secure apps in gmail is enabled
Here’s the inputs for the activity
inputs
i also tried port(143,465) they aren’t working too with different errors

what could be wrong???

1 Like

Hi…
@Sondos_Ibrahim1 There is nothing wrong, just u need to enable Less Secure Apps to your Gmail Account. Kindly go through this link and enable the Less Secure Apps then your issue will be resolve…

https://myaccount.google.com/lesssecureapps

Hi @vamsiyeluri
less secure apps is already enabled for the email

Gmail is having issues with less secure apps and smtp across the board and across the world right now it seems. I have 6 / 7 different sites all reporting the same issue.

1 Like

@Max_Carne_Jnr
thanks alot for sharing it
it’s working now and i didn’t change anything, so Probably it was because of those issues.

Hi…
@Sondos_Ibrahim1 Try this one it will work. Just convert your password from secure string to string. and pass it in password phrase…
Use Assign Activity to convert your password…

strVariable = new System.Net.NetworkCredential(string.Empty, Password).Password

image

2 Likes

it works fine now .
if it crashed again i will try this … Thanks a lot :grin: @vamsiyeluri

Hi , While Allow less secure app setting its coming below , seems not allowing to on it.

From 30 May 2022 , Gmail has stopped to allow less secure apps,
So, Alternate Solution for this is -

  1. Turn On two step verification
    2.Generate the app Password and use that password in Imap Activity