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

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.)

Related

Send Email Without Showing Compose UI In iOS 7

I have an in-house app that is used by employees. I need functionality included in the app so that an email can be sent to a group email address in an emergency. For this I do not want to have to show the UI and then have to require the user to press send to actually send the email. I am trying to send a pre-written email that sends when a PIN is entered correctly.
I have seen and tried to implement SKPSMTPMessage but this does not seem to work in iOS 7.
If I send the email to an smtp service via a web service I can make this work but if there's an easier way within objective c then I would like to use that way.
Is it possible to send an email in the background in iOS 7+ in the above scenario?

How to send mail without showing the mail composer view

I am developing an iPhone application in which I have to send mail to only recipient without showing the MFMailComposer UI view (i.e without user interaction). Can please tell me how to achieve this?
You cannot send Email without user acceptance. But there are a lot of web-services in internet which can send Email. I guess some app uses those services or uses own.
See also How can I send mail from an iPhone application
You can also use the gmail mail facilities into the xcode
For that following to gives much more tutorial and source code here
Reference link
Using openURL method of UIApplication, you can send the mail without using mail composer. For that you should select "mailto" option.

Sending an email automatically through my iPhone App

I am new to iPhone app development. I have a form that the user can fill out to request additional information about my product. I would like the app to automatically send out the email without launching UI.
I have looked through several posts that have recommended using ASIHTTPRequest to "Post" data. However most of the posts are dated back to 2009. My question is that using Xcode 4 is there another way of accomplishing the same thing without using ASIHTTPRequest?
Thanks
T!
If you want to send emails without the standard mail composer you have to
ask the user for his email address
implement SMTP. And SMTP is more complex than a simple POST to http.
Alternatively you could set up a script on a web server to which you send the mail address you got from the user.

Automatic email from iphone application

I have seen some similar questions here on stack-overflow, but in my application i want when user click on confirm button automatic email go to the email id specified in the form with other details.
How can i implement this.
You could just make a post request to a server and have the server then send the email.
You cannot send emails automatically without sending the user to the mail application. You could however, take advantage of a third party service like Amazon Simple Email Service http://aws.amazon.com/ses/ to send the message.

How to send via my iphone application a planned emails and without launching the email application?

I know how to send email from my application by launching the iPhone Mail application, then return to my app. But I have two concerns:
1 / My first concern is how my application can send emails without opening the mail application?
So I will inform the user that the email has been sent successfully or failure on failure of transmission.
2 / My second concern is to make sending mail programmed (in scheduled task) as in the case of UILocalNotification.
I have not found a solution, I try to avoid knowing the solution that uses open source classes for sending mail via SMTP, because I want my application uses the configuration of the iphone and mail ask the user to configure where the mail is not configured.
Thank you in advance for your help.
You can send mail from your app using MFMailComposeViewController.
http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMailComposeViewController_class/Reference/Reference.html
You can use MailCore or similar alternatives.
You cannot do that with your app in the background. It's not the same as UILocalNotification as it requires user's approval before the app can do anything about that notification.