I have my gmail set up as POP instead of IMAP, and it works very nicely. But then, I'm partial to POP and I can't update to Yosemite.
Settings: Account Information:
Incoming: pop.gmail.com, user name is just the first part of your address (before the @), Outgoing: smtp.gmail.com TLS certificate none
Click down on the outgoing server, pick Edit SMTP list, click on the gmail: the Description and server name should be same as the outgoing server.
Click the advanced button: use default ports, use SSL, Password authentication, FULL gmail address
Mailbox Behaviors Tab: set as you like
Advanced Tab:port 995, use SSL, Password authentication
There is a good help section from Google:
https://support.google.com/mail/troubleshooter/1668960?hl=en#ts=1665018
Best of luck,
Ellen
PS: I have my gmail set up as IMAP on my Android phone. Every works.