SmsMessage.Send Method

Windows Mobile 6.5

Sends the SMS message.

Namespace: Microsoft.WindowsMobile.PocketOutlook
Assembly: Microsoft.WindowsMobile.PocketOutlook (in microsoft.windowsmobile.pocketoutlook.dll)

public void Send ()

This sample shows how to send an SMS message to a mobile phone.

public void SmsMessageSend()
    SmsMessage smsMessage = new SmsMessage();
    //Set the message body and recipient.
    smsMessage.Body = "Would you like to meet for lunch?";
    smsMessage.To.Add(new Recipient("John Doe", "2065550199"));
    smsMessage.RequestDeliveryReport = true;
    //Send the SMS message.

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.