简体   繁体   中英

Sending an email from within iOS web app without closing web app and opening mail

Currently when I send a mail message from within an iOS web app (fullscreen from home screen) the web app closes and the mail app opens.

The same thing happens in Color Mail: http://www.apple.com/webapps/productivity/colormail.html . When you send a mail message you are kicked out of the web app.

Is there a way to send a mail message and remain inside the fullscreen web app?

Thanks!

If you want to send an email without using the Apple Mail client (which is basically what you're asking) you'll need to use a web service that support sending email in response to a request.

For example, Amazon's Simple Email Service lets you send email in response to an API query.

However, if what you're after is sending an email message from the user's own account then you unfortunately must exit the app and go into Apple Mail - in much the same way that a mailto: link would do if you used it on a website.

EDIT: IF you were a native app, what you'd be after is the MFMailComposeViewController . It allows you to bring up a standard mail compose interface right within your app.

HOWEVER, since you're not, you're going to have to build your own form interface, and then take the form submission on the web app and send the mail from there.

(Sorry. Didn't read.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM