问题
I'm a new Twilio user and am trying to test sending an SMS using my Live credentials, purchased From number, and valid To number. I'm receiving this error: Unable to create record: Permission to send an SMS has not been enabled for the region indicated by the 'To' number
AFAIK, sending IS enabled for the United States. Is there something else that I'm missing?
Thank you.
回答1:
Twilio developer evangelist here.
What you need to do is go to your Twilio console, to the Geographic permissions for SMS section and ensure you have the permission checked for sending to the US.
Let me know if that helps.
回答2:
You can enable the region by checking the regions in Twilio Settings Twilio SMS Permission Settings
As I m facing the same issue "Permission to send an SMS has not been enabled for the region indicated by the \'To\ number", then I enabled all the regions and it worked perfectly
回答3:
If you are using it for registration process consider using their "verify" service which allows international phone numbers instead of the "programmable sms". Otherwise you have to manually enable the countries.
来源:https://stackoverflow.com/questions/47423741/twilio-permission-to-send-sms-has-not-been-enabled-for-the-region-indicated