Possible Duplicate:
How to programmatically send SMS on the iPhone?
I want to send sms programmatically. I tried with the following code,It triggers message composer and then user needs to manually select the send button but I just want everything to be done programmatically that is even to send sms not only insert recipent number and body message.
MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease];
controller.body = @"Hello from Dinesh";
controller.recipients = [NSArray arrayWithObjects:@"999468*****", @"91999468****", nil];
controller.messageComposeDelegate = self;
[self presentModalViewController:controller animated:YES];
Help me...