How to send an SMS Message using Email or HTTP Protocols

2

I want to write a piece of PHP code that will send SMS to any number in the world. I read somewhere one can use email to do this as follows.

user-number@carrier-domain.com1234567894@vnet.com

I tried this with my number and my carrier's website domain and it didn't work. I think the domain is something which is not publicly available so my job should be able to find it first. Am I right here? Also they can put some checks as what the source is when they receive the SMS so they reject. Is that true too?

On the other hand, is there any way HTTP can be used to do so?

Umair A.

Posted 2011-07-08T10:20:12.120

Reputation: 411

Answers

3

This is possible, but usually you'll need a special agreement with the carrier or a third-party who'll send the sms. And it'll cost you (here in germany starting at 8-10 Cent for a small number of sms).

There may be different ways to deliver sms, e-mail, http or a special api.

But a simple e-mail to number@telco.example.com will most likely not work. I have never heard of such method. Some telcos accept e-mails sent to these addresses, but the recipient has to allow/activate this.

Edit: Another method you could consider: connecting a gsm-module (or even an old mobile phone) to a server and send sms via at-commands over a serial/usb connection.

trurl

Posted 2011-07-08T10:20:12.120

Reputation: 2 102

You're right but my question was how do actually different carriers do that among them? Assume I am carrier a and you're carrier b, then how would your customers send my customers SMS through their phone? What request params are there and what would they need any agreement between them? – Umair A. – 2011-07-08T11:40:16.730

I guess the smscs speak SS7 between themselves. SS7 is nothing one could connect to, you have to be a carrier (or a third-party with a large throughput).

– trurl – 2011-07-08T12:11:04.427

1

Check the web site of your mobile carrier, or contact their technical support. Email-to-SMS and HTTP-to-SMS gateways are specific to each carrier.

Flimzy

Posted 2011-07-08T10:20:12.120

Reputation: 4 168