Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send SMS from my website? Only sending SMS is required, not receiving [closed]

I want to send SMS to a group of phone numbers in my database, from my website.

Can you please guide me on how to do it, which are the best and reliable SMS api in php which I can integrate?

I want to send SMS only in India, if anyone has experience in this please do reply.

like image 484
yuvraj Avatar asked Jun 22 '11 11:06

yuvraj


1 Answers

Answer 1: This is a pretty nice sms API: http://www.clockworksms.com/

Answer 2: This isn't an API solution, but more of an overview how you can quite easily build your own solution with PHP5. To send an sms to a phone, all you have to do is email the message to the phone number. The email address is just the phone number and carrier domain.

  1. Determine Carrier
  2. Determine domain for carrier
  3. Construct email address
  4. Send email

Determine Carrier The carrier can be determined by the area code and first 3 numbers. I don't know any APIs off the top of my head (I'm sure they exists though), but if you wanted to go the custom route you can sort of build your own. For example, this site has an input where you can determine carreir: http://www.telcodata.us/search-area-code-exchange-detail

But it's just posting the data, so you can figure it out by passing your own parameters. for example: ww.telcodata.us/search-area-code-exchange-detail?npa=323&exchange=249

Determine Domain Each carrier has their own domain for text. For example, AT&T is @txt.att.net while Verizon is @vtext.com.

Here is a list of carrier domains: http://www.emailtextmessages.com/

Construct Email Example: if an AT&T number is (510) 123-4567 you can send an sms to the number by emailing [email protected].

like image 67
Bad Programmer Avatar answered Sep 27 '22 18:09

Bad Programmer