Monday, June 11, 2012

Send SMS with Windows Phone 7

[sourcecode language="csharp"]
SmsComposeTask smsComposeTask = new SmsComposeTask();
smsComposeTask.To = textBox1.Text; // Get recepient's number
smsComposeTask.Body = textBox2.Text; //Get message body
smsComposeTask.Show(); // Invoke the native sms task
[/sourcecode]



SMS Sending user interface.



After Send button is clicked it opens up the native SMS application with message & phone number filled.



Once the user clicks on Send Button on native SMS application, SMS will be sent.

No comments:

Post a Comment

How to enable CORS in Laravel 5

https://www.youtube.com/watch?v=PozYTvmgcVE 1. Add middleware php artisan make:middleware Cors return $next($request) ->header('Acces...