SmsMessage.Send Method

Windows Mobile 6.5
3/29/2010

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.
    smsMessage.Send();
    
    return;
    }

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