Mann
Mann

Reputation: 5507

automatic background email from iphone application to users

I am so confused. My simple requirement is: i have an application which contains confirmation form i.e. nib file. It contains some textFields like name, age, email etc. I simply want when somebody click on submit button application send background and automatic email to email defined in textField. that email contain all information like name, age etc. User need not to fil anything and it should work in background. There are so many application do the same thing. I am creating booking application.

So how can i impliment this behaviour.

Upvotes: 0

Views: 282

Answers (3)

Michael Aaron Safyan
Michael Aaron Safyan

Reputation: 95639

To do this:

  1. Send an HTTPS POST request to your server application.
  2. From your server application, send an email via SMTP (or APIs built on top of SMTP).

Google AppEngine provides a simple and cheap way to create such a web service, running on top of Google's cloud-computing infrastructure. The sending mail from AppEngine help document includes detailed examples of how to send mail from your server application (assuming you use the Python version of Google AppEngine).

Upvotes: 1

sosborn
sosborn

Reputation: 14694

Apple does not provide a way to do this - and for good reason. Sending emails from the phone automatically introduces a lot of security risks.

I am willing to bet that the apps that do this use an intermediary server to which they post the data. When the data is posted then the server handles the sending of the emails.

Upvotes: 2

Bo A
Bo A

Reputation: 3154

Unfortunately, there is no official feature for this but you could download a third-party library. Refer here for a couple of suggestions.

Upvotes: 1

Related Questions