Share via


SmsMessage.Send Method

3/29/2010

Sends the SMS message.

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

Syntax

public void Send ()
'Declaration
Public Sub Send

Example

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;
    }

Thread Safety

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

See Also

Reference

SmsMessage Class
SmsMessage Members
Microsoft.WindowsMobile.PocketOutlook Namespace