简体   繁体   English

从服务器向webapp发送和接收SMS

[英]send and receive SMS from server to webapp

I am in Kenya and the twilio pricing is very expensive here. 我在肯尼亚,这里的twilio定价很贵。 I would like to send and receive sms messages, store them in a database and display them on a web app. 我想发送和接收短信,将它们存储在数据库中并显示在Web应用程序上。 Is it feasible to build this with node.js? 使用node.js构建它是否可行? How could I get a framework like express to send/receive text messages? 我怎样才能获得像express这样的框架来发送/接收短信?

Well you'd still need some sms-gateway, irrespective if you're using node.js or something else. 那么你还需要一些短信网关,无论你是在使用node.js还是其他东西。

Google: "sms gateway nodejs" for some stuff 谷歌:某些东西的“sms gateway nodejs”

I did some searching and found a similar service called SMSified , that seems to be priced more reasonably. 我做了一些搜索,发现了一个名为SMSified的类似服务,似乎价格更合理。 There is a node module that hasn't been updated in 3 years, but that might give you a good starting point. 有一个节点模块在3年内没有更新,但这可能会给你一个很好的起点。

Another one that is explicitly free during development/testing is Tropo . 另一个在开发/测试期间明确免费的是Tropo This one has a more-recently-updated node module . 这个有一个更新近更新的节点模块

I haven't used either of these myself, but hopefully one of them should be what you're looking for. 我自己没有使用过这些,但希望其中一个应该是你想要的。

Another option is to use an SMS gateway provided by the carriers. 另一种选择是使用运营商提供的SMS网关。 Typically you can send an email to [number]@[gateway-address]. 通常,您可以向[编号] @ [网关地址]发送电子邮件。 For example, to send a text to 123-456-7890 on AT&T's network, you would simply send an email to 1234567890@txt.att.net. 例如,要将文本发送到AT&T网络上的123-456-7890,您只需发送电子邮件至1234567890@txt.att.net即可。 Take a look here for a list of common carrier's gateway addresses. 在这里查看一下公共运营商的网关地址列表。

If you already have email integrated with your app, this might be very easy to implement. 如果您已经将电子邮件与您的应用集成在一起,则可能很容易实现。 The only downside is that it would require users to specify their carrier before you can send them an SMS message. 唯一的缺点是它需要用户在发送短信之前指定他们的运营商。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM