0

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.

Mann
  • 5,477
  • 6
  • 45
  • 57

2 Answers2

3

You could just make a post request to a server and have the server then send the email.

James Black
  • 41,583
  • 10
  • 86
  • 166
  • can you explain it in detail Please – Mann Aug 07 '11 at 19:32
  • Just send the message, from field, to field and perhaps subject directly to your server and it can send out the email to the recipients, by making an http post request. You may want some sort of security on the webserver, but that is a detail at best. – James Black Aug 07 '11 at 20:52
  • Ok. Thanks. If you know any can you send me link of example code or tutorial or something – Mann Aug 07 '11 at 21:14
  • http://stackoverflow.com/questions/5537297/ios-how-to-perform-a-http-post-request – James Black Aug 07 '11 at 23:03
0

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.

dtuckernet
  • 7,817
  • 5
  • 39
  • 54
  • Nope. The MFMailComposeViewController class provides a way to send emails in-app, though not automatically. – Noah Witherspoon Aug 03 '11 at 00:25
  • Did you just read your own response? It doesn't send it automatically, but that is exactly what the user requested. Please take time to read and understand the question before down-voting. – dtuckernet Aug 03 '11 at 00:27
  • Read and understood the question; the downvote was for the inaccuracy of the first part of your answer. Sending the user to the Mail application won’t send the email automatically either. – Noah Witherspoon Aug 03 '11 at 02:34