未对指定区域启用发送短信的两个权限

我是一个新的 Twilio 用户,正在尝试发送一条短信使用我的 Live 凭证,购买从号码,和有效的到号码。我收到这个错误: 无法创建记录: 没有为“收件人”号码指示的区域启用发送短信的权限

AFAIK,向美国发送 IS 启用。还有什么我不知道的吗?

谢谢你。

57935 次浏览

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.

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

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.

You need to enable Geographic permission for the region were you want to send the sms to. You can do that here https://www.twilio.com/console/sms/settings/geo-permissions

I was also facing the same issue but You have to add country code with ur number as well then it worked perfect