Gmail is a tricky one, lots of folks have issues setting up scanning to them from HP products:
You could also try the HP LaserJet MFP Wizard:
Some alternative configurations you can try:
http://community.spiceworks.com/topic/241079-how-do-i-connect-coppier-to-google-apps-mail-server