简体   繁体   中英

Twilio rest api error code 21612

When I attempt to send an image file using the Twilio.SendMessage Rest API call, I get the error: Code 21612 - The 'To' phone number is not currently reachable via SMS or MMS.

Here is the code I use:

var message = twilio.SendMessage(fromPhone, phone, "a message for you", new string[] {"http://website.com/images/folder/pic.jpg"});

This phone number works fine for text messages. I checked with my carrier, and my plan includes "picture Messaging" as well. So I am questioning the validity of the error message. Is there something else I need to check or do to get this to work?

This happened to me when I used Alphanumeric sender id (ex: TWILLIO) when sending messages. So USA doesn't support alphanumeric sender ids. You can see the list of countries support or need to be pre-registered to support alphanumeric sender id. The list

Error code explanation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM