Share via


Send SMS Programmatically

Here is the snippet to send SMS programmatically

 

using

Microsoft.WindowsMobile.PocketOutlook;

SmsMessage smsMessage = new SmsMessage();

smsMessage.Body =

"Some message";

smsMessage.To.Add(

new Recipient(strNumber)); // StrNumber holds the receipeint number

smsMessage.RequestDeliveryReport =

false;

//Send the SMS message.

smsMessage.Send();

Comments

  • Anonymous
    July 27, 2010
    Just where in did you get this namespace from? using Microsoft.WindowsMobile.PocketOutlook;