in my application i wan to send predefine smstext to one single number on certain event , it is possible to send sms like that! if yes please help me with sample code
+1
A:
You cannot send an SMS without user intervention. However, with the user's "approval" there are two ways to send an SMS from an iPhone application.
- Apple's MessageComposer sample project has code that shows you how to send an SMS using the MFMessageComposeViewController class.
Alternatively, you can use:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:1-408-555-1212"]];
Robot K
2010-09-29 05:57:39
thanks for the reply...
Sukhi
2010-09-29 06:01:27