Pipe2Path
Pipe2Path

Reputation: 561

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?

Upvotes: 4

Views: 2733

Answers (1)

Viraths
Viraths

Reputation: 950

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

Upvotes: 0

Related Questions