In this chapter, the steps required to set up an SMS gateway will be explored. Once configured, you will be able to send text messages to individual contacts and mass mailing lists within CiviCRM.
The Clickatell service is an online SMS gateway designed for the sending of text messages via the Internet. They offer several products, but here we are only interested in the "Developer's Central" SMS gateway, as it offers more advanced tools needed to link it to CiviCRM (this is achieved through APIs; see the CiviCRM developer guide for more information). Registering for a Clickatell account is free, and they supply 10 complimentary credits to try the service. To sign up, visit:
http://www.clickatell.com/register/
Once you have registered for a Developer's Central account, please sign-in and follow the steps below (when logging in you must select "Central API" as the product and enter your Client ID):
In the Central Home dashboard, click "Create a new Connection" under "Connection Status"
Select "HTTP/S" as the connection type
Four optional settings will appear, including: - Description: change the name of the connection (e.g. "CiviCRM HTTP") - Replace leading zero: enable this option if phone numbers against your contacts begin with "0". For delivery to be successful, all numbers must begin with the country code if this is not enabled. - Enable IP Address Restriction: if you know the IP address of your CiviCRM server, you can enter it here to ensure that text messages cannot be sent using your account elsewhere (your username and password would be needed to do this)
Click "Submit and Get API ID" to generate an API ID, and on the next page, make a note of it.
You now have all of the information needed to configure SMS in CiviCRM. To continue, return to CiviCRM and go to: Administer > System Settings> SMS Providers. Click "Add New Provider".
Complete the following settings:
- Name: select "Clickatell"
- Title: give the SMS provider a title user's will see (e.g. "Clickatell SMS")
- Username: enter your Clickatell username
- Password: and your Clickatell password
- API type: select "http"
- API URL: type the URL as follows: https://api.clickatell.com
- API Parameters: this is where you should provide your API ID. The
format required is:
api_id=8473658
- Is this provider active?: tick to enable the SMS gateway
- Is this a default provider?: check this option to make it the default, where multiple SMS providers are available
CiviCRM will now be configured to send text messages to your contacts.
You can begin testing the gateway using the methods laid out in the chapter "Everyday tasks". However, please note that if you are using the 10 complimentary SMS credits which came with the account, until you have purchased credits Clickatell will replace the content with thank you text like the message below:
Thanks for testing Clickatell's gateway coverage. You will be able to change the content of your message after your initial purchase of message credits.