2

I am currently trying to figure out how to send an email behind the scenes. Basically, I don't want an MFMailComposeViewController popping up making me press the send button. All the fields are pre-populated so there is no need to type anything out. Is this possible? Will I have to use another framework?

Thanks

doc92606
  • 691
  • 2
  • 11
  • 32
  • Take a look at skpsmtpmessage, I believe it might be what you're looking for: http://code.google.com/p/skpsmtpmessage/ – username tbd Nov 29 '12 at 00:48

2 Answers2

4

You'll have to use your own mail server (or ask the user for credentials for their own, which you probably don't want to do). The iOS SDK intentionally doesn't allow you to send an email on behalf of the user with no user interface; making the user press "Send" is the whole idea so that they are never surprised.

Apps that push email out automatically either do so from their own servers, or integrate with a server framework like Mailgun, or Parse, or etc, that offer this feature.

Ben Zotto
  • 70,108
  • 23
  • 141
  • 204
  • Thanks much! I just want the user to push the least amount of buttons for the app I am currently developing. – doc92606 Nov 29 '12 at 23:40
0

I've done that in one of my apps using Mailgun, which is a hosted email web service.

TotoroTotoro
  • 17,524
  • 4
  • 45
  • 76