通过 JavaScript 向手机发送短信

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4367225/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 12:07:15  来源:igfitidea点击:

Sending SMS to mobile phones via JavaScript

javascript

提问by Steven

I am a beginner in JavaScript. I would like to develop a JavaScript to send SMS to mobiles from my laptop or my mobile (java enabled though computer option would be better). Can anybody help me?

我是 JavaScript 的初学者。我想开发一个 JavaScript 来从我的笔记本电脑或我的手机发送短信到手机(虽然电脑选项会更好,但启用了 java)。有谁能够帮助我?

采纳答案by capdragon

You could try these guys: http://www.zeepmobile.com/blog/?p=17

你可以试试这些家伙:http: //www.zeepmobile.com/blog/?p =17

OR

或者

Cellular carriers assign email addresses to their phone numbers and support SMS by email.

移动运营商将电子邮件地址分配给他们的电话号码,并通过电子邮件支持 SMS。

So if you can email, you can text.

因此,如果您可以发送电子邮件,则可以发送短信。

format : (subscriber 10 digit number)@sms_providerdomain.xxx

格式:(订阅者 10 位数字)@sms_providerdomain.xxx

Alltel @message.alltel.com AT&T @txt.att.net Nextel @messaging.nextel.com Sprint @messaging.sprintpcs.com SunCom @tms.suncom.com T-mobile @tmomail.net VoiceStream @voicestream.net Verizon @vtext.com (text only) @vzwpix.com (pictures and videos)

Alltel @message.alltel.com AT&T @txt.att.net Nextel @messaging.nextel.com Sprint @messaging.sprintpcs.com SunCom @tms.suncom.com T-mobile @tmomail.net VoiceStream @voicestream.net Verizon @vtext .com(仅文本)@vzwpix.com(图片和视频)

回答by Prabakaran G

See the Phonegap SMS Pluginto send SMS messages and also see this.

请参阅Phonegap SMS 插件以发送 SMS 消息,也可以参阅此内容