Messages.create( to: to, messaging_service_sid: messaging_service_sid, body: "Hello from your Alpha Sender" ) puts "Message envoyé ! Message sid : #{message.sid}" Run the script on the command line, passing your own phone number ( in E.164 format ). You will then receive a message 11-digit phone number format philippines from your alphanumeric sender. Bash Copy the code ruby send-sms.rb +VOTRE_NUMERO_ICI Congratulations, you have successfully sent yourself a message from your alphanumeric sender! Discover messaging services In this article, you learned how to set up a Messaging Service using an alphanumeric sender and send a message using this service in Ruby.

You can check out the full code in this GitHub repo . Sending a message without a phone number is just one example of what a Messaging Service can do for you. You can also configure your Messaging Service to: Fall back to long code for countries where alphanumeric senders are not supported Select the appropriate number from the number pool for the country you are sending to using Geomatch Distribute messages across numbers in your group to handle sending larger message volumes Always use the same number for a specific end user with Sticky Sender And much more! Please let me know about projects you're building with Twilio Messaging.