SMTP gmail error

Impossible to setup.
The error reported from gmail is always that user and password are wrong, but that’s not true.

I disabled two passages , I gave access to less secure apps, and i followed also https://www.google.com/accounts/DisplayUnlockCaptcha

Nothing.

Someone can help?

thanks

Try using a simpler password, without any speacial characters, to see if it makes a difference.

I solved by changing some setup on google. Unfortunately I did a lot of changes, therefore I am not able to say which one was definitive.

thanks.