tags:

views:

430

answers:

3

I wanted to design an app that would send SMS messages to your contacts from within the app in the background. However, I cannot seem to find any tutorials on it and the Apple Docs arent anyhelp. I have also read somewhere that it is outright impossible.

But if so, how does the app, iDistress manage to do it? It send text messages from preselected contacts with a custom message : http://www.buzapp.com/idistress.html

Check out the screencast.

Thanks.

+2  A: 

Direct access to the SMS and Email features aren't available in the official SDK. iDistress sends a request to a web service that they host (which sends out emails and text messages from their server)

rpetrich
Thanks for the reply. Can you send me a link of where you got this info?
Ali
It is available in iPhone OS 4.0. [See my post](http://stackoverflow.com/questions/2894473/send-sms-from-iphone-app/2895975#2895975)
Emil
Ali: there's no documentation in the 3.1 SDK on how to compose an SMS message ergo it is not permitted. It appears there is the ability to show the composer in 4.0 (thanks Emil). Direct access to send email/SMS without showing UI is not allowed, nor do I think it will be in the near future.
rpetrich
Thanks for your help Emil.
Ali
+3  A: 

Are you a registered Apple Developer? If so, you can use the 4.0 framework to show the composer window and set some of the values programatically inside of your app, without having to ever exit the app. However, you will have to wait until the new iPhone and OS4.0 comes out, roughly about June/July, to release the application.

Remember: you are not allowed to discuss details of iPhone OS 4.0 anywhere else than Apple's official Developer Forums, which you need to be a registered Apple Developer to access.

http://developer.apple.com/iphone/prerelease/library/documentation/MessageUI/Reference/MessageUI_Framework_Reference/index.html#//apple_ref/doc/uid/TP40008274

Emil
Thanks. Yes I am a registered Developer and will start going through the docs to get this in my app.
Ali