Hi, I did all the steps as you said but Google deactivated the Less secured App Access option in the gmail account, do you know any other solution? Thanks!
You should go to GOOGLE Settings instead Gmail Settings, that's the difference, go go google.com, touch your picture, click on manage your Google Account. This is the place where you have to take a look. Hope this helps.
Here is an article on GMail - Scan to email in lite of less secure apps no longer available. There are links to other informative pages within the article.
I hope this helps.
I followed this instructions and the email service of the printer is now working with a gmail account. I just enable the 2 step verification and created an app password. Let me know if you need any help.