function SendSMSViaEsendex(aUsername, aPassword, aAccountID, aRecipientNum, aMsg: string): boolean;


This function sends a text message (SMS) to a recipient phone number using the Esendex service.
 
Parameters

aUsername

Your Esendex username

aPassword

Your Esendex password

aAccountID

Your Esendex Account ID

aRecipientNum

The recipient phone number

aMsg

The actual text message to be sent

 
Return value

True

The message was successfully sent

False

Error while sending the message; the message was not sent

 
Example


// The following example sends a text message (SMS) to a recipient's phone via Esendex

begin
  SendSMSViaEsendex('btdr763', 'yr43f787', 'u4f89t4y', '+10005550000', 'My text message goes here');
end.