Nexmo 无法向美国号码发送短信,但能够向印度号码发送短信
Nexmo not sending SMS to US Number, but able to send to Indian Number
向美国号码发送消息的 Curl:
curl -X POST "https://rest.nexmo.com/sms/json" -d "from=1XXXXXXXXXX" -d "text=A text message set using the Nexmo SMS API" -d "to=1XXXXXXXXXX" -d "api_key=my_api_key" -d "api_secret=my_api_secret"
回复:
{
"message-count": "1",
"messages": [{
"to": "1XXXXXXXXXX",
"status": "15",
"error-text": "Illegal Sender Address - rejected",
"network": "XXXXXX"
}]
}
向印度号码发送消息的 Curl:
curl -X POST "https://rest.nexmo.com/sms/json" -d "from=1XXXXXXXXXX" -d "text=A text message set using the Nexmo SMS API" -d "to=91XXXXXXXXXX" -d "api_key=my_api_key" -d "api_secret=my_api_secret"
回复:
{
"message-count": "1",
"messages": [{
"to": "91XXXXXXXXXX",
"message-id": "0F000XXXXF05XXX6",
"status": "0",
"remaining-balance": "48.96XXXXXX",
"message-price": "0.00800000",
"network": "XXXXX"
}]
}
这对美国和印度号码都很好,但最近它给我 Illegal Sender Address - rejected
错误。
nexmo 有什么改变吗?
有关美国 SMS 功能的限制,请参阅此页面:
https://help.nexmo.com/hc/en-us/articles/204017023-USA-SMS-Features-Restrictions
具体来说:
"All SMS sent to the US must originate from either a U.S. pre-approved long number or short code that is associated with your Nexmo account. Alpha sender IDs are not supported."
向美国号码发送消息的 Curl:
curl -X POST "https://rest.nexmo.com/sms/json" -d "from=1XXXXXXXXXX" -d "text=A text message set using the Nexmo SMS API" -d "to=1XXXXXXXXXX" -d "api_key=my_api_key" -d "api_secret=my_api_secret"
回复:
{
"message-count": "1",
"messages": [{
"to": "1XXXXXXXXXX",
"status": "15",
"error-text": "Illegal Sender Address - rejected",
"network": "XXXXXX"
}]
}
向印度号码发送消息的 Curl:
curl -X POST "https://rest.nexmo.com/sms/json" -d "from=1XXXXXXXXXX" -d "text=A text message set using the Nexmo SMS API" -d "to=91XXXXXXXXXX" -d "api_key=my_api_key" -d "api_secret=my_api_secret"
回复:
{
"message-count": "1",
"messages": [{
"to": "91XXXXXXXXXX",
"message-id": "0F000XXXXF05XXX6",
"status": "0",
"remaining-balance": "48.96XXXXXX",
"message-price": "0.00800000",
"network": "XXXXX"
}]
}
这对美国和印度号码都很好,但最近它给我 Illegal Sender Address - rejected
错误。
nexmo 有什么改变吗?
有关美国 SMS 功能的限制,请参阅此页面: https://help.nexmo.com/hc/en-us/articles/204017023-USA-SMS-Features-Restrictions
具体来说:
"All SMS sent to the US must originate from either a U.S. pre-approved long number or short code that is associated with your Nexmo account. Alpha sender IDs are not supported."