Send SMS
Table of Contents
Overview
The sendSms Deluge task when executed sends an SMS using the connected SMS gateway service to the specified recipients. For example, a Zoho Inventory user can use this task to send SMS to their vendor whenever a product runs low on stock.
Syntax
sendSms [ to: <phone_number> message: <message> connection: <connection_link_name> ];
where:
Parameter | Data type | Description |
<to> | TEXT/ LIST | Phone number of the receiver. The phone number must be in the format: +<country_code><phone_number>. Note:
|
<message> | TEXT | Contents of the message that needs to be sent to the receiver. Note:
|
<connection_link_name> | TEXT | Link name of the SMS gateway connection. Supported services:
|
Send an SMS using Clickatell connection
The following snippet sends the message - "Thanks for attending the event. Hope you found it useful" to the specified phone number through the Clickatell SMS gateway.
sendSms [ to: +9199XXXXXXXX message: "Thanks for attending the event. Hope you found it useful." connection: "clickatell_connection" ];
Send an SMS to multiple users using Twilio connection
The following snippet sends the message - "Thanks for attending the event. Hope you found it useful" to the specified list of phone numbers through the Twilio SMS gateway.
// Create a collection to store all the recipients phone numbers recipients = Collection(); recipients.insert("+9199XXXXXXXX"); recipients.insert("+9188XXXXXXXX"); // Use sendSms task to send the specified message to all the recipients sendsms [ from: +9199XXXXXXXX to: recipients message: "Hello" connection: "twilio" ];