function SendSMSViaTwilio(aAPIKey, aAPISecret, aTwilioNum, aRecipientNum, AMsg: string): boolean;


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

aAPIKey

Your Twilio API Key

aAPISecret

Your Twilio API Secret

aTwilioNum

Your Twilio phone number

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 Twilio

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