What to know before sending international SMS messages
Using the Short Message Service (SMS) across national boundaries has more considerations than getting a phone number.
People and organizations use Twilio to send SMS messages. Carriers consider all SMS messages from Twilio to be application-to-person (A2P), as your Twilio app sends messages to, and receives messages from, people. This behavior differs from person-to-person (P2P). Carriers consider P2P as communications between two or more people. To compare A2P to P2P, see the related Twilio Help article.
Countries and carriers subject A2P traffic to different rules. Depending on the country to which you send SMS messages, you need to consider four factors:
- What guidelines exist in the target country
- How you want to identify yourself to recipients
- What type of text you need to send
- What type of other media you need to send
Comply with national regulations on phone numbers
Make sure to comply with country regulations on phone numbers. Both Twilio and our customers must adhere to local country regulations. This often means you must provide adequate identity documentation to carriers or local regulators. Failure to do so creates a risk of disruption of service. Check the regulatory guidelines for phone numbers in the countries you want to target.
Recipients of your SMS messages might span the world. The guidelines you need to follow in sending SMS messages depend on where your recipients got their device. Twilio refers to the country in which recipients live as the target country. You must follow any A2P guidelines about SMS of the target country. These guidelines might affect the timing, content, and permissions of your SMS messages.
Examples
- France and India limit the times for sending promotional messages and require opt-in from message recipients.
- Japan and Saudi Arabia filter out gambling-related or objectionable content.
These guidelines also affect how senders identify themselves to recipients. When only a physical device with an assigned phone number could send messages, the Sender ID was the same as the phone number. As senders cover a variety of devices and systems, the sender needs a Sender ID. Twilio refers to the country of the SMS sender as the origin country. A Sender ID takes three formats: a long code, a short code, or an alphanumeric ID. These formats vary in throughput capability, content type, and pricing.
Twilio offers the following Sender ID types:
These IDs send and display between 10 and 15 digits formatted per the International Telecommunication Union (ITU) E.164 standard.
- Twilio provides these on demand for local, national, mobile, and toll-free numbers in 190 countries.
- Use long codes for low-volume messaging, like anonymous chatting applications and customer service communications.
- Some countries refer to these IDs as ten-digit long codes (10DLC).
These IDs send and display between three and seven digits depending on the origin country.
- Each country defines the length of the short codes it provides.
- Not all countries support short codes, nor do they support short codes from one country to send to another country.
- Use short codes for high-volume, time-sensitive A2P messaging, such as two-factor authentication (2FA) notifications, reminders, and marketing communications.
- Carriers must approve short codes. This can take between 8 to 12 weeks with setup, recurring, and per-message charges.
- Twilio manages the carrier approval process for US, UK, and Canadian short codes.
These IDs present as a maximum of 11 alphanumeric characters.
- Each target country can choose to accept this ID depending upon their regulations and 53 countries require ID registration.
- Alphanumeric Sender IDs can include:
- Any digit 0 through 9
- all uppercase and lowercase non-diacritical alphabetical characters
- spaces
- some special characters:
+
,-
,&
,_
. Some countries also support.
.
- One hundred eighty-six countries support Alphanumeric Sender IDs.
- WhatsApp doesn't support Alphanumeric Sender IDs.
- Use Alphanumeric Sender IDs for low-volume, one-way messaging with branding.
- If you use an Alphanumeric Sender ID with a Twilio Messaging Service, Twilio selects the Alphanumeric Sender ID when you send a message to a supported country.
- These Sender IDs differ from a Caller ID Name (CNAM).
- A CNAM determines what a recipients sees on their device in place of a long code.
- An Alphanumeric Sender ID serves as the code itself. It isn't masking another number or code.
The following table outlines the support, throughput (in messages per second or Mps), registration requirements, timing, and general costs for the various Sender IDs.
Sender ID type | Country support | Mps | Country registration | Application time | Cost |
---|---|---|---|---|---|
long code or 10DLC | US, Canada | 1 | Yes | 1 week | Low |
toll-free | US, Canada | 3 | No | 1 week | Low |
long code | 190 countries | 10 | Varies | Varies | Varies |
short code | 14 countries | 100 | Varies | 8-12 weeks | High |
alphanumeric | 186 countries | 10 | Yes, in 53 countries | Up to 16 days | Varies |
To display and transmit text characters, a technology needs to translate text into data. Character encoding covers how something determines much data a text character needs and how the character gets translated. Some character encodings include only a few common characters while others provide as many as possible. The number of characters in an encoding is called a character set.
Twilio translates text characters into data using one of two standards: Global System for Mobile (GCM) communications and Universal Coded Character Set (UCS). GCM-7, the 7-bit character set for GCM, covers 128 of the common Latin-based characters. SMS, and Twilio, use GCM-7 as their default character encoding. UCS-2, the 16-bit character set, covers 65,535 characters including Chinese, Japanese, Korean, Hebrew, and Arabic characters among others. UCS-2 uses two bytes of data per character. When Twilio encounters a character not in the GCM-7 set, it changes the encoding of the entire message to UCS-2.
When SMS began, it limited messages to 140 bytes or 160 characters. To permit longer messages, SMS redefined messages as message segments. SMS could split the message when sent and recombine it when received. To split and recombine long SMS messages, Twilio uses user data headers. These headers take six bytes per message.
Character encoding matters because Twilio bills per message segment, not per message.
Only the US and Canada support Multimedia Messaging Service (MMS) messages. When sent to target countries that don't support MMS, the Twilio MMS Converter feature converts MMS to SMS. To turn off this feature, go to the Twilio Console SMS Settings. To let your recipient access the media, these SMS messages include a link in the message body.
To start sending international SMS messages, figure out what type of message you want to send and to which audience. This use case helps you choose the best Twilio solution for sending global SMS.
- Review legal considerations.
- Review the compliance concerns in your target countries.
- To reduce your exposure to fraud, review the Twilio SMS Geo Permissions Guide.
- Review your target country support for long codes, short codes, and alphanumeric sender IDs.
- Review the support in your target countries for message concatenation, multimedia, two-way SMS, and UCS-2.
- Apply for your long code, short code, or alphanumber sender ID. This may include additional regulatory paperwork to complete outside of Twilio.
- Draft your SMS message.
- Review how Twilio encodes and segments your SMS message using this calculator.
- Review the SMS pricing for the countries to which you plan to send messages.
- Review how to use Twilio Messaging Services.
- Review which mitigation features you need to send your message.
- To have Twilio prioritize SMS delivery using short codes, use the Shortcode Reroute feature.
- To have a ready alternative to your short code, use the Fallback to Long Code feature of Twilio Messaging Services.
- If your target country doesn't support MMS, use the MMS Converter feature of the Twilio Messaging Service. This feature converts MMS messages to SMS messages that contain a shortened URL to the full messages.