Under “Mailbox Behaviors” you’ll see three options.Start in the Settings app, choose “Mail, Contacts, Calendars” and Select your Gmail IMAP account that you created above.On your iPhone, iPod touch or iPad (with v3.1.3, other versions may vary slightly): Do the same with the “Trash” mailbox underneath your Gmail folder list, but instead choose “Trash” from the submenu.The mailbox should disappear from view - this is normal, and means that Mail.app is now aware of this Mailbox’s special function. Go to the Mailbox menu, choose “Use This Mailbox For” and choose “Sent” from the submenu that appears.In Mail.app, highlight the “Sent Mail” box underneath your Gmail folder list.
HOW TO SET UP IMAP GMAIL ON IPHONE MAC
On your Mac (this works with Leopard and Snow Leopard, Tiger may be slightly different): It also lets you sync up a Drafts mailbox, though experience has shown that this causes lots of duplicate messages, so we don’t recommend it. IMAP allows you to not only sync up your inbox, but your Sent and Trash, as well.
For outgoing mail, use “”, allow SSL, and port 465.For the Incoming Mail Server, use “”, allow SSL, and use port 993 (the last two will likely happen automatically).Instead, set them all up as standard IMAP accounts. On all of them, do NOT choose a “Gmail” preset. Now you can setup your mail clients, including your Mac and your iPhone. It will save these settings automatically. At the very least, uncheck this for “All Mail”. It’s here that you’ll choose which labels you wish to hide from IMAP clients. Go back to Settings > Labels and you should now see a “Show in IMAP” column next to all your labels.