Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for an SMS gateway that has the following criteria:

  • Supports sending from short codes
  • Opt-in capabilities for end-user (will require user to opt in before sending message)
  • Has a clean API, preferably an XML/ REST API, although SOAP is fine
  • The cheaper the better

Honestly, I keep searching and searching all permutations of "SMS Gateway API" etc... on Google and I can't find any great services that can support all of these criteria. There are a lot of really SEO optimized sites and I can't tell which of them are legit. I'm looking for something that will be easy and quick to implement, and none of my colleagues have any recommendations. What APIs have you used (preferably with PHP) that have gotten this job done? Which services have been the most pleasant to deal with, both technically and support-wise?

Update: Will be sending primarily (probably solely) in the US.


migration rejected from stackoverflow.com Jul 4 '13 at 15:06

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as primarily opinion-based by John Conde Jul 4 '13 at 15:06

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

possible duplicate of Recommendations for SMS gateways with API-support – Brian Apr 21 '11 at 17:45

(I work for Twilio)

Twilio meets your requirements, with the following caveats:

  • We support short codes with the same simple API http://www.twilio.com/sms/short-codes
  • Opt-in and opt-out capabilities are left up to your application logic
  • We have the cleanest API of any gateway I've used (I was in a similar situation as you prior to working here so I have a lot of experience working with many different providers).
  • Our prices for long-code SMS start at $1/month for the phone number and $.01/message. Complete pricing is posted on the site http://www.twilio.com/pricing/
  • We have a PHP helper library that makes integration easy
+1 for being respectful of the community and properly acknowledging your association with Twilio. – John Conde Apr 21 '11 at 18:29
Ah, I've used Twilio before. It was the short code that was concerning me. Does this mean that we would be able to figure out a way to get our private short code functioning? I guess I'm unclear as to what the private preview means. – Nick Apr 21 '11 at 18:55
It means it's not self-service right now so you have to go through the form I linked to start the process of getting access. – John Sheehan - Runscope Apr 22 '11 at 6:10
Does Twillio works for sending message to indian customers – nepsdotin Jan 11 '15 at 10:43

There are many SMS services that will allow you to set the originator to your Google number. If you are planning to send to the US, then this is different because the US carriers require to certify the originators (in most cases) so the end user can also opt out, request information about the service, etc, but if you are planning to send SMS to other countries in the world then you will be able to do it for most of them if you use an SMS API service that supports dynamic sender ID.

(Disclaimer: I work for Nexmo).

Nexmo is an SMS API that allows you to send with a dynamic sender ID or originator. This means that you will be able to set the sender ID to be your Google number.

There can be exceptions where certain countries/operators introduce filters, for example for alphanumeric originators, and in that case the operator in particular would not accept messages with this type of sender, however, these are introduced in a relatively small number of countries. Normally there are no problems at all with international numbers as the originator of the message.

Nexmo API uses RESTful protocol and responses can be formatted in XML or JSON. It is very simple to integrate to the API. I recommend that you check the website out for the documentation and the reach.


I hope this helps. Let me know if I can help with any other question.


protected by John Conde Jul 4 '13 at 15:06

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.