Choose where you’d like to start

Send SMS

Note: This task is supported in all Zoho services except Zoho Creator. To send SMS from Zoho Creator, use Deluge's SMS integrations.

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:

ParameterData typeDescription

<to>
 

TEXT/ LIST

Phone number of the receiver.

The phone number must be in the format: +<country_code><phone_number>.

Note:
  • This param is optional while using the task with Clickatell connection and mandatory with Twilio connection.
  • While using Twilio connection, "My Twilio phone number" from your Twilio account must be supplied as value to this param.

<message>

TEXT

Contents of the message that needs to be sent to the receiver.

Note:
  • Maximum character length allowed for Clickatell: 160
  • Maximum character length allowed for Twilio: 1600

<connection_link_name>

TEXT

Link name of the SMS gateway connection.

Supported services:

  • Clickatell
  • Twilio

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" 
]; 

Get Started Now

Execute