问题描述
- 您需要使用某种提供商吗?
- 您可以设置自己的SMS服务器吗?
- 是否存在任何开源解决方案?
我是一个短信新手,所以任何关于如何实现这一点的见解都会很棒。我偏爱Java,但任何语言都没问题。
I am an SMS newbie so any insight on how this is accomplished would be great. I am partial to Java but any language is fine.
推荐答案
这很容易。是的,您需要一个短信网关提供商。那里有很多。这些公司为您提供发送/接收短信的API。
This is easy. Yes, you need a "sms gateway" provider. There are a lot out there. These companies provide APIs for you to send/receive SMS.
例如。德国公司提供了一个简单的API。如果你想收到短信,只需编写一个简单的PHP / JSP / s.th.else动态网页,让Mobilant调用它。
e.g. the German company Mobilant provides an easy API. If you want to receive a SMS just program a simple PHP / JSP / s.th.else dynamic web page and let Mobilant call it.
例如
- Mobilant为您收到短信
- Mobilant呼叫您的网页 ...
- 你做什么你需要做什么
- Mobilant receives a SMS for you
- Mobilant calls your web page http://yourpage.com/receive.php?message=...
- You do what you need to do
你真的不想设置自己的短信服务器或中心;-)这真的很贵,需要几个月来设置和花费一些不错的法拉利。
You really don't want to setup your own SMS Server or Center ;-) This is really expensive, takes months to setup and costs some nice ferraris.
使用提供商并按短信付费。这是最便宜,最快捷的方式。
Use a provider and pay per SMS. It's the cheapest and fastest way.
这篇关于您可以使用什么来使应用程序能够接收SMS消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!