开发者

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

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 6 years ago.

Improve this question

I want to send SMS to a group of phone numbers in my d开发者_StackOverflow中文版atabase, 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.


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 5101234567@txt.att.net.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜