Please see this Xerox Support Forum link.
I hope this helps.
Thank you for using the Support Forum. Please see the this article on How to Setup Scan to Gmail. This article is for a different product but step 27 explains the changes needed on the Google side. If this does not help you will need to contact Google support for additional help.
I'm pretty sure this is more of a gmail issue, not a xerox issue, but I'm hoping one of the geniuses here knows how to solve it. I have my workcentre 6515 set up to scan to email, configured to my gmail account. Every time I try to scan something (which is about 1 or 2 times a month) the scan errors out. The problem is always with Gmail turning the "allow less secure apps" security feature back to secure. Is there a way to keep it in the less secure mode, or somehow add the xerox to the "secured apps" list so I stop having this issue?