Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

C# – Windows Phone 8 – SMS Via Program

Posted on December 1, 2015February 12, 2016 By David Kittell
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using Windows.Phone.Speech.Recognition;
using Windows.System;

// Original Credit Goes To: AbundantCode
// http://abundantcode.com/how-to-send-sms-in-windows-phone-8-programatically-using-c/

namespace AbundantCodeWP8
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
        }
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            SmsComposeTask SMSCompose = new SmsComposeTask();
            SMSCompose.To = "<Number to which the SMS needs to be sent";
            SMSCompose.Body = "Message that needs to be sent";
            SMSCompose.Show();
        }
    }
}

GitHub: https://gist.github.com/dkittell/025bfa7e07b7a052eee6

Reference/Credit: http://abundantcode.com/how-to-send-sms-in-windows-phone-8-programatically-using-c/

Originally Posted on December 1, 2015
Last Updated on February 12, 2016
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code CSharp Windows Phone

Post navigation

Previous post
Next post

Related Posts

PowerShell – Create ASPX Site Within IIS Including Dedicated Application Pool

Posted on November 13, 2015November 17, 2015

This script relies on this post currently as it gets a test ASPX site to make sure everything was setup correctly. .\IIS-Create.ps1 <Site/App Name> <Site Root Path> <Site Port> <Domain User Account> <Domain User Password> clear Function Load-WebAdmin { $webAdminModule = get-module -ListAvailable | ? { $_.Name -eq "webadministration" }…

Read More

Mac OSX Terminal – Xcode Reset

Posted on December 5, 2016December 13, 2016

Make sure Xcode is closed. defaults delete com.apple.dt.Xcode rm -rfv ~/Library/Application\ Support/Developer/Shared/Xcode rm -rfv ~/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState rm -rfv ~/Library/Preferences/com.apple.dt.Xcode.* rm -rfv ~/Library/Preferences/com.apple.dt.xcodebuild.plist rm -rfv ~/Library/MobileDevice/Provisioning\ Profiles/* Originally Posted on December 5, 2016Last Updated on December 13, 2016 All information on this site is shared with the intention to help….

Read More

PHP – OpenSSL AES Encryption

Posted on October 26, 2015

This is currently setup as a three file setup, I can not remember where I originally found the code so I can not take full credit for this post. I use the code below to send a username and date\time to another page. If the date\time is within 2 minutes…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes