Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Problem with iOS 7 and smtp Gmail

Hi everyone,


I chose in the past for a Gmail account because it supported push mails on the iPhone through Exchange.


When Google stopped the push mails through Exchange, I found a work around to keep using my gmail address on my iPhone :

  • I created an iCloud email address, to have push mails
  • I set a rule in my Gmail that automatically forwarded all incoming mails to my iCloud email address
  • I changed the outgoing server of my iCloud address, using smtp.gmail.com so that all outgoing mails of my iCould account was using my Gmail address



It was a bit complicated to set up, but at the end it worked fine and it was transparent for my contacts: they were sending en receiving mails from my Gmail address.


It all worked until... iOS 7. With iOS 6.1.4, it was OK, but since the latest upgrade to iOS 7 my outgoing mails are coming from my iCould and not my Gmail account anymore. The iCloud SMTP server is set as "inactive" and the smtp.gmail.com is set as "active", however emails are sent from my iCloud address...


I don't get it. My iPad is still in 6.1.3 with the same settings as my iPhone 5 in iOS 7: my iPad reacts as it should be, my iPhone doesn't.


Is it an identified bug in iOS 7, is it a problem at Gmail's side?


Thanks for your feedback,


Chris

iPhone 5, iOS 7

Posted on Sep 19, 2013 4:58 AM

Reply
83 replies

Sep 22, 2013 11:55 PM in response to ojaychavez

OK, it's working with imap.mail.me.com, i've got indeed push.


However, 2 things:

1) I only have got push if I use one device only... What is strange is that I entered the parameters on my iPhone: it worked. I shut it down and then entered the data on my iPad: it worked as well. But then I turned both devices on and made a test to send an email ==> Result = no push on both devices, whereas test on individual devices where successful for the push... If both devices are on, the email account reacts like an imap without push. If I use only one device, push is active. What is the problem there?

2) To be able to use the smtp.gmail.com correctly, I had to enter an incorrect data in the SMTP of iCould (for instance I withdrew the "m" at the end of the iCloud SMTP address server, in order to have an invalid primary SMTP to "force" the system to use the alternative one (my Gmail SMTP))

Sep 23, 2013 5:47 PM in response to alex349

I had the same problem - upgraded to iOS 7, came in yesterday morning and happily sent 12 emails before realising they were all just sitting in my outbox and my gmail's outgoing server wasn't connecting. I believe I have the problem sovled though (no guarantees). I was mucking around with the settings a bit and found that the default outgoing mail server was the Gmail SMTP Server one which you cannot switch off and for which you cannot change the port (465) but in the below list of OTHER SMTP SERVERS I had "smtp.gmail.com" which used my gmail address and was turned off. I turned it on and changed the port to 587. After that, my emails began to send. Again, I cannot promise that this is a miracle cure, not even sure that's why mine started working, but worth a try.

Sep 24, 2013 3:24 AM in response to XRochez

None of the above options worked for me... but then I remembered that I had set up that 2-step verification access on my gmail at one point and thought maybe that had something to do with it... well, whaddya know lol


So... this worked like a charm:


*On a desktop PC, log into your gmail account.

*Click the gear up in the top right corner > Settings

*Click Accounts

*Under "Change Account Settings", click "Other Goole Account Settings"

*Along the left, click "Security"

*Under 2-step verification, click "Manage your application specific passwords"

*It will ask for your usual gmail account password and take you to a page that says "

Authorized Access to your Google Account

*You will see a box to type in something (I just typed in iphone 5s) then click "Generate Password"

*It will generate a random password for you... you will need this password THREE TIMES in your phone....


Now...



*Go to your iPhone Settings>Mail, Contacts, Calendars>Add Account>Other>Add Mail Account

*Type in your name, your usual gmail email address and for the password, type in that random one generated on your PC

*Next


Incoming Mail Server:

Host Name: imap.gmail.com

User name: (your gmail email address)

Password: TYPE IN THAT RANDOM PASSWORD AGAIN


Outgoing Mail Server:

Host name: smtp.gmal.com

User name (your gmail email address)

Password: TYPE IN THAT RANDOM PASSWORD AGAIN


Done


And allll the emails came rushing in 🙂 Hope this works for you!

Sep 24, 2013 3:25 AM in response to Ressie103

None of the above options worked for me... but then I remembered that I had set up that 2-step verification access on my gmail at one point and thought maybe that had something to do with it... well, whaddya know lol


So... this worked like a charm:


*On a desktop PC, log into your gmail account.

*Click the gear up in the top right corner > Settings

*Click Accounts

*Under "Change Account Settings", click "Other Goole Account Settings"

*Along the left, click "Security"

*Under 2-step verification, click "Manage your application specific passwords"

*It will ask for your usual gmail account password and take you to a page that says "

Authorized Access to your Google Account

*You will see a box to type in something (I just typed in iphone 5s) then click "Generate Password"

*It will generate a random password for you... you will need this password THREE TIMES in your phone....


Now...



*Go to your iPhone Settings>Mail, Contacts, Calendars>Add Account>Other>Add Mail Account

*Type in your name, your usual gmail email address and for the password, type in that random one generated on your PC

*Next


Incoming Mail Server:

Host Name: imap.gmail.com

User name: (your gmail email address)

Password: TYPE IN THAT RANDOM PASSWORD AGAIN


Outgoing Mail Server:

Host name: smtp.gmal.com

User name (your gmail email address)

Password: TYPE IN THAT RANDOM PASSWORD AGAIN


Done


And allll the emails came rushing in 🙂 Hope this works for you!

Sep 24, 2013 11:44 AM in response to nunomonteiro

Here's the solution:


First: what it gives me:


Push notifications for gmail, outgoing sent from gmail, from native ios 7 mail app.


What I did:


1. Forward gmail to icloud. Set gmail forwarding to archive the message once it forwards it. Save that.

2. Set up both icloud and gmail accounts on the native mail app. Keep both enabled for mail.

3. Under Mail, Contacts, Calendars, set the default account to Gmail. Set that account from fetch to manual (you'll never actually retrieve, and you don't want it to drain battery).

4. (Per Apple support) You might have to manually change the "from" line on responses the first few times to convince the app that you want the gmail server to be the default smtp, but it will be automatic after a few times. Gmail was the default smtp the first time for me.


You will still have an active Gmail inbox on the app, but it won't fill up with messages because they'll be archived at the server level, and you'll never retrieve the data anyway.


This gives me push gmail and an outgoing gmail from the native app (which I like). The only downside is that your web gmail inbox is full of archived messages.


Cheers!


Message was edited by: paulscable

Sep 24, 2013 2:21 PM in response to paulscable

I have done this an it works, but there is the obvious downside of iCloud not syncing 100% with read/deleted/archived/sent messages between iPhone and gmail on the web. Does anyone know if there is a solution that provides this "syncing" capability? Possibly using Outlook instead of iCloud for something that works like ActiveSync?

Sep 24, 2013 6:45 PM in response to XRochez

This is clearly a bug. After spending 2 hours trying to figure it out here is what I found:


Tried:


-Re-entering Gmail SMTP

-Changing Gmail smtp port (587, 465,25)

-Deleting/Re-Adding email accounts

-Restarting

-Turning off all other smtp servers

-Turning off SSL


After all that, I still get the "does not allow relaying" error and mail sits in the Outbox.


However, if you double click the home button (iPhone 5) and swipe up to close the iMail, then re-open it, voila, the email sends.


Horrible (almost as horrible as not being able to turn off all of this new (irritating) animation on EVERYTHING).

Sep 25, 2013 5:01 PM in response to XRochez

What has changed is that iCloud mail seems to now be hard-coded to send through iCloud. The way to change it is this:


1. Create a dummy account with Google (empty inbox, no mail comes in)

2. Set this up on your iphone

3. Once you've finished with #2, go to Settings > Mail, Contacts, Calendars > (select your new account here) > and select SMTP under "Outgoing Mail Server"

4. Select smtp.gmail.com > and under username enter the actual gmail account email address you want to reply from and enter the correct password

*. You may also have to change the port to 587 which is an older SSL/SMTP port instead of 465.


Assuming you already have mail forwarding from your primary gmail account, when you get an email in your iCloud account and you want to reply, be sure to tap the Cc/Bcc, From: field and select your dummy google account.


That should do it.

Sep 26, 2013 8:43 PM in response to XRochez

This WORKED FOR MY WIFE AND I, on iPhones and iPads! CITYRIVER THANKS!


Re: Problem with iOS 7 and smtp Gmail

Sep 24, 2013 3:25 AM (in response to Ressie103)


So... this worked like a charm:


*On a desktop PC, log into your gmail account.

*Click the gear up in the top right corner > Settings

*Click Accounts

*Under "Change Account Settings", click "Other Goole Account Settings"

*Along the left, click "Security"

*Under 2-step verification, click "Manage your application specific passwords"

*It will ask for your usual gmail account password and take you to a page that says "

Authorized Access to your Google Account


*You will see a box to type in something (I just typed in iphone 5s) then click "Generate Password"

*It will generate a random password for you... you will need this password THREE TIMES in your phone....


Now...



*Go to your iPhone Settings>Mail, Contacts, Calendars>Add Account>Other>Add Mail Account

*Type in your name, your usual gmail email address and for the password, type in that random one generated on your PC

*Next


Incoming Mail Server:

Host Name: imap.gmail.com

User name: (your gmail email address)

Password: TYPE IN THAT RANDOM PASSWORD AGAIN


Outgoing Mail Server:

Host name: smtp.gmal.com

User name (your gmail email address)

Password: TYPE IN THAT RANDOM PASSWORD AGAIN


Done


And allll the emails came rushing in Hope this works for you!

Problem with iOS 7 and smtp Gmail

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.