New! GraphQL.NET Cookbook by Senthil Kumar Balu

Windows Phone 8.1 and Windows Runtime Apps How to #11 – How to Send SMS in Windows Phone 8.1 XAML App ?

In the Windows Phone 8.0 and earlier version , the developers could utilize the SMSComposeTask to send SMS from the Windows Phone App. If you are targeting the Windows Phone 8.1 Silverlight model , this will still work fine . How about sending SMS from Windows Runtime App ?

How to Send SMS in Windows Phone 8.1 XAML(Windows Runtime) App ?

If you are targeting the Windows Phone 8.1 XAML App(Windows Runtime App) , you can use the ChatMessage class defined in the Windows.ApplicationModel.Chat namespace.

Below is a sample code snippet demonstrating how to send SMS from a Windows Phone 8.1 App.

async private void Button_Click(object sender, RoutedEventArgs e)
    ChatMessage chat = new ChatMessage();
    chat.Body = "Subject : This is a Test SMS from";
    await Windows.ApplicationModel.Chat.ChatMessageManager.ShowComposeSmsMessageAsync(chat);


Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.