How to send SMS from Zoho Creator apps

Posted on by
7

One feature request that we receive frequently from our customers is the ability to send SMS from Zoho Creator apps. The solution is to have a third-party SMS Gateway service that supports HTTP(s) or SMTP API integrated with the Zoho Creator app.

Clickatell is one such service and we’ll explain below how a Zoho Creator application can be configured to use Clickatell’s SMTP API to send SMS. We have created a simple Zoho Creator application for this. The script (.ds file) for the application is available here. Download the .ds file and open it in a text editor of your choice. In the sendSMS function,

  1. Replace clickatellusername with username of your Clickatell account
  2. Replace clickatellpassword with password of your Clickatell account
  3. Replace APIKEY with API ID of your Clickatell account

void sendSMS(int to, string text)
{
sendmail
(
To : "sms@messaging.clickatell.com"
From : zoho.loginuserid
Subject : "SMS"
Message : "user:clickatellusername\npassword:clickatellpassword\napi_id: " +
"APIKEY\nfrom:ZohoCreator\nto:" + input.to + "\ntext:" + input.text
Content type : Plain Text
)
}


After doing the above changes, import the ds file to your Zoho Creator account.…