Declaration

Visual C#:

int SendSMS(string Number, string Text);

Visual C++:

long SendSMS(CString Number, CString Text);

Visual Basic:

Private Sub SendSMS(ByVal NumberAs String, ByVal Text As String) As Integer

Delphi:

function SendSMS(Number: String; Text : String) : Integer;

Parameters

Number

    Recipient's phone number.

Text

    Text to be sent.

Return Value

Return a sequence number from 1 to 256 if the operation was successful; otherwise return Error Code. This sequence number matches with that in the NewDeliveryReport event. Therefore through this sequence number the message delivery report can well match with the sent messages. 

Remarks

Send text messages.

See Also SendWAPPush, ReadAllSMS, DeleteSMS