You can find the article into Xerox Support section of your product. You have plently of documentations with step by step.
Type Scan to email into the product support of your model and you will find articles related to how to configure Scan to Email on GMAIL.
The Password application doesn't work. I tested for many customers. It's working only if the customer has not a free GMAIL account.
If the customer has a free GMAIL email account "personnal" or "business" and use free version, Google no longer support third party devices to use SMTP connectivity to their service with a non-secure account.
Customer need to activate the 2nd authentification security and create a application password and use that password has the authentificaiton password.
I confirm that this solution works! I enabled the 2 step verification and created the App password, then I used this password in the printer as the emails password and worked perfectly, thanks!
so it seems like you need to leave 2 step authnetication on , leave your login password alone. Create the app password and just use that password in the Xerox printer settings.. Correct?
For for updates :
If the customer doesn't use the scan to email with GMAIL frequently it's seem's that they disable the 'Less Secure App' for security reason. I have couples of customers who is happening. Just re-enable them will fix the issue.
Also, if the customer has Google Workplace previously called G-suite, it has an option in security to restrict the user to have access to 'Less Secure App' to be enabled into Google WorkPlace Admin.
See here for Google Article -> https://support.google.com/a/answer/6260879?hl=en