iPhone 5s mail not working with gmail
The integrated mail app on my iphone 5s isn't working with gmail. It keeps saying there is an imap server error. I tried restarting my phone, and deleting the gmail account from the phone and creating a new one. I also checked my imap settings at gmail on a web browser. Everything I do (it started with just trying to check my mail, but now that I deleted the account and tried to create a new one, I can't even do that) generates that imap error message. Sometimes the message even appears three or four times from a single action. My username and password are correct, and the standalone gmail app works fine. It's just the integrated mail that doesn't work. My wife seems to have the exact same problem, but I haven't seen anything about Apple having some kind of server problem. I'm using the most current iOS. Any ideas what the problem could be?
iPhone 5s, iOS 7.1