{"id":18112014,"url":"https://github.com/philnash/send-sms-with-twilio-alphanumeric-sender-ruby","last_synced_at":"2025-04-06T08:29:25.235Z","repository":{"id":66250638,"uuid":"473820632","full_name":"philnash/send-sms-with-twilio-alphanumeric-sender-ruby","owner":"philnash","description":"An example of how to send an SMS message without a phone number using Twilio and Ruby","archived":false,"fork":false,"pushed_at":"2022-03-25T01:05:14.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-21T00:09:14.433Z","etag":null,"topics":["alphanumeric-sender-ids","ruby","sms","twilio","twilio-sms","twilio-sms-api"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philnash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-25T00:49:38.000Z","updated_at":"2022-03-25T15:17:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"9634baea-195f-4367-a301-c6470e52cffa","html_url":"https://github.com/philnash/send-sms-with-twilio-alphanumeric-sender-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fsend-sms-with-twilio-alphanumeric-sender-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fsend-sms-with-twilio-alphanumeric-sender-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fsend-sms-with-twilio-alphanumeric-sender-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philnash%2Fsend-sms-with-twilio-alphanumeric-sender-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philnash","download_url":"https://codeload.github.com/philnash/send-sms-with-twilio-alphanumeric-sender-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247456175,"owners_count":20941841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alphanumeric-sender-ids","ruby","sms","twilio","twilio-sms","twilio-sms-api"],"created_at":"2024-11-01T01:09:11.292Z","updated_at":"2025-04-06T08:29:25.216Z","avatar_url":"https://github.com/philnash.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Send SMS in Twilio without a phone number\n\nThis is an example of how to send SMS without a phone number in Ruby. In many countries you can use an alphanumeric sender ID to send messages instead of using a phone number.\n\n![An example of a message sent from an alphanumeric sender ID. It shows the ID used as the contact name.](./message-from-alpha-sender.png)\n\nTo use this code example, you will need to have set up a [Messaging Service](https://www.twilio.com/docs/messaging/services) with an alphanumeric sender ID in the pool. To see the steps required, please follow the steps in this blog post: [How to send SMS without a phone number using an alphanumeric sender ID and Ruby]().\n\n## Running the project\n\nTo run this project you will need an upgraded Twilio account (you can't send messages from an alpha sender with a trial account) and a Messaging Service with an alpha sender in the pool. Gather your Twilio Account Sid and Auth Token from the [Twilio console](https://console.twilio.com/?frameUrl=/console) and your Messaging Service Sid from the [Messaging Services section](https://console.twilio.com/us1/develop/sms/services?frameUrl=%2Fconsole%2Fsms%2Fservices%3Fx-target-region%3Dus1).\n\nYou will also need [Ruby](https://www.ruby-lang.org/en/documentation/installation/) and [Bundler](https://bundler.io/) installed.\n\nClone the project, change into the directory and install the dependencies:\n\n```bash\ngit clone https://github.com/philnash/send-sms-with-twilio-alphanumeric-sender-ruby.git\ncd send-sms-with-twilio-alphanumeric-sender-ruby\nbundle install\n```\n\nCopy the `.env.example` file to `.env`:\n\n```bash\ncp .env.example .env\n```\n\nThen open the `.env` file and enter your Twilio Account Sid, Auth Token and Messaging Service Sid.\n\n### Send a message\n\nTo send a message, run the `send-sms.rb` file on the command line and pass in the phone number you want to send the message to as the first argument:\n\n```bash\nbundle exec ruby ./send-sms.rb +YOUR_PHONE_NUMBER\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilnash%2Fsend-sms-with-twilio-alphanumeric-sender-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilnash%2Fsend-sms-with-twilio-alphanumeric-sender-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilnash%2Fsend-sms-with-twilio-alphanumeric-sender-ruby/lists"}