Send SMS via Twilio
ts
function SendSMSViaTwilio(
twilioSid: string,
twilioToken: string,
senderNum: string,
recipientNum: string,
message: string
): boolean;Sends an SMS (text) message to a recipient phone number via Twilio.
twilioSidandtwilioToken: Your Twilio SID and AuthToken.senderNum: One of your Twilio-assigned phone numbers (sender).recipientNum: The recipient's phone number, in international format (e.g., +15550005555).message: The SMS text (length may be limited by carrier/technology).
Returns true if the message was accepted by Twilio, or false otherwise.
WARNING
Twilio’s acceptance of a message does not guarantee delivery. Track delivery status in your Twilio management console.
Example
ts
SendSMSViaTwilio(
'********',
'*********',
'+12345678901',
'+15550005555',
'Hello from AFT!'
);