iOS: Gmail account will not connect to Gmail server
If you cannot receive or send email with a Gmail account set up on your iPhone, iPad, or iPod touch, you may experience the following errors:
When checking for new mail, this error appears: "Cannot Get Mail. The connection to the server 'imap.gmail.com' failed."
When trying to send mail, this error appears: "Cannot Send Mail. The connection to the server 'smtp.gmail.com' failed."
When trying to send or receive mail, this error appears: "The username or password for [account] is incorrect."
If the account is removed and added again to the device, this error appears: "Could not connect using SSL. Would you like to try setting up the account without SSL?" Saying yes to this message repeatedly will result in a message saying "Cannot Get Mail. The connection to the server 'imap.gmail.com' failed."
Check that your device is connected to the Internet by opening Safari and loading a webpage, such as google.com. If you cannot connect to the Internet, try the steps in this article.
If you have other email accounts on the device, check if those accounts can send and receive email.
Once the account has been unlocked, or the correct password entered, check that the issue is resolved. If not, remove the affected Gmail account from the device and add it to the device again: Settings > Mail, Contacts and Calendars > Add Account > Gmail.
Important: Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. Apple provides this only as a convenience to our users. Apple has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and Apple assumes no responsibility in this regard. Please understand that a third-party site is independent from Apple and that Apple has no control over the content on that website. Please contact the vendor for additional information.
Important: Information about products not manufactured by Apple is provided for information purposes only and does not constitute Apple’s recommendation or endorsement. Please contact the vendor for additional information.