开发者

automatic background email from iphone application to users

开发者 https://www.devze.com 2023-03-26 18:49 出处:网络
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 cli

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 t开发者_如何转开发his behaviour.


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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消