tags:

views:

49

answers:

2

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.

  1. Apple's MessageComposer sample project has code that shows you how to send an SMS using the MFMessageComposeViewController class.
  2. Alternatively, you can use:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:1-408-555-1212"]];

Robot K
thanks for the reply...
Sukhi
A: 

I got the solution go through this link i am trying it now ....

Click Here

Sukhi