It’s been a few months since we hosted Signal (if you missed it, don’t forget that videos from all the sessions are available online) and in this post I wanted to spend some time exploring one of the announcements that I found pretty exciting: alphanumeric sender ID’s. Being based in the UK and traveling often in Europe I regularly receive SMS messages with a business name as the sender ID instead of a phone number. This is great as I instantly recognize the name of the business sending me the message instead of seeing an incoming message from an unknown number.
Now I can use Twilio to enhance the experience I provide users receiving my SMS messages by sending text messages with an alphanumeric sender ID to any of 145 countries around the world. In this post I’m going to show you how.
A word of warning
Before we dive into the code, there are a few things you should know about alphanumeric sender IDs. This style is great for alert or broadcast type messages, but no use for interactive applications as users cannot respond to an alphanumeric sender. As such, if you choose to use an alphanumeric sender ID you will need to provide alternative ways for users to opt out. You should also think carefully about the sender ID that you choose. Your business name or brand is fine, but if you try to get too creative things can really backfire.
Ready to start sending branded SMS messages? Let’s get on with it then.
Today’s toolbox
I’m going to demonstrate sending an SMS message from an alphanumeric ID using Ruby, so if you want to follow along, you’ll need the following:
- A Twilio account (to use alphanumeric sender IDs, you will need to upgrade your account and contact Twilio support to enable your account)
- A Twilio phone number (you don’t need this to send from an alphanumeric sender ID, but you’ll see why you need it soon)
- Ruby and the Twilio Ruby gem ( gem install twilio–ruby)
and that’s it, so let’s get on with sending some SMS messages!
Your form has been submitted
Thank you %NAME% for submitting the post
.
We have received your Guest Post. You can view it anytime from this link below:
%TRACK_LINK%
We have also attached a copy of your submission.
Server Side Error
We faced problems while connecting to the server or receiving data from the server. Please wait for a few seconds and try again.
If the problem persists, then check your internet connectivity. If all other sites open fine, then please contact the administrator of this website with the following information.
TextStatus: undefined
HTTP Error: undefined
Error
Some error has occured.