piaChai piaChai - 10 days ago 9
iOS Question

How can my app jump to iOS default mailbox?

I wanna set a button inside my app that, if clicked, app can jump to the default mailbox of iOS. I want to do this so users can check & send their mails.

Does this function need a private API or is this forbidden by Apple?

Thanks in advance for your kind help.

Answer

To Send an email from within your app, one of the first 2 answers will work: MFMailComposeViewController or using the url scheme mailto://.

As for checking the users email, there is currently no public way to launch the default iOS mail application. There are however a few 3rd party libraries available to allow you to set up your own mail client, for example MailCore, remail or Chilkat. I'm sure there are others but you get the idea.