来自网络应用程序的短信

来自网络应用程序的短信

问题描述:

我只想用PHP从Web应用程序发送SMS. 谁能告诉我该怎么做? 我需要为此做些什么?

I just want to send SMS from my web application in PHP. Can anyone tell me how to do this? What all things I need to do for this?

我不知道这是否适用于您,但是为了省钱我做了很多次,是在用户个人资料中询问用户他的载体是什么是,然后尝试将其与 this list 进行匹配.本质上,许多运营商/大多数运营商都将电子邮件地址连接到电话号码,这样您就可以轻松地向该号码发送文本.例如,如果您拥有ATT,并且电话号码是786-262-8344,则发送至7682628344@txt.att.net的电子邮件将向您免费发送带有电子邮件主题/正文的文本消息.这项技术几乎可以免费覆盖您的所有美国用户.显然,根据您的应用程序的需求,这可能是不可能的/适当的/可取的,但这是一个需要注意的选择.

I don't know if this applies to you, but what I have done many times to save myself the money is ask the user in his profile what his carrier is, then tried matching it with this list. Essentially, many/most carriers have an email address connected to a phone number that will easily let you send texts to the number. For example, if you have ATT and your phone number is 786-262-8344, an email to 7682628344@txt.att.net will send you a text message with the subject/body of the email, free of charge. This technique will pretty much cover all of your US users for free. Obviously, depending on the needs of your application this may not be possible/adequate/desired, but it is an option to be aware of.