Skip to main content

Twilio

Twilio sends the texts of your site for about $0.008 a text in the US plus the carrier fee, more in other countries, from a number of yours or a messaging service that picks one.

How Text messages work, and their limits, is on Text messages (SMS).

1. Your keys​

  1. Make an account at Twilio and open its Console.
  2. Under Account Info on its first page, copy the Account SID and the Auth Token. Keep the token to yourself: anyone who has it can use your account.

2. A number, or a messaging service​

  • A number: under Phone Numbers → Manage → Buy a number, buy one with SMS. Texts to the US and Canada need a number registered for them, toll-free with its verification or local with 10DLC.
  • A messaging service: under Messaging → Services, press Create Messaging Service and add your numbers to its sender pool. Twilio then picks the number for each text. Copy its SID, which starts with MG.

A trial account sends only to numbers you verified in Twilio, and only for its first days. Upgrade it before members sign up.

3. Enter them​

  1. In WordPress, go to Poly Community → Settings → Services → Text messages.
  2. Under Service, choose Twilio.
  3. Account SID and Auth token: from step 1.
  4. From: your number with its calling code, such as +15550001111. Or leave it empty and fill Messaging service SID instead.
  5. Under Sending and limits, enter the countries you text, then press Save changes.
Text messages with Twilio: the Account SID, the Auth token kept, From a number and the messaging service SID empty
Settings → Services → Text messages, Twilio

4. Send a test​

Under Send a test, type a number of yours with its calling code and press Send. On a trial account it must be a number you verified. The answer of Twilio stays on the screen, and Texts that failed lately says why a text was refused, in the words of Twilio.