如何从VB.Net代码发送短信 [英] How do I send SMS from VB.Net Code

查看:135
本文介绍了如何从VB.Net代码发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



我正在为客户开发一个应用程序,要求应用程序向客户发送短信手机号码。



我将非常感谢您提供任何帮助。



谢谢

Dear all,

I'm developing an application for a client that require that the application to send SMS to customers mobile number.

I'll appreciate any offer for assistance please.

Thanks

推荐答案

您可以使用在线服务(建议取决于国家/地区),也可以购买将SIM卡插入并使用AT命令发送短信的USB调制解调器。



哪种选择对你有好处取决于你真正想做什么以及你的音量是多少。许多提供商也有电子邮件地址,如5551234567@sms.provider.com,它接收电子邮件文本并将其转换为SMS,但它不是通用的。
Either you can use an online service (suggestions would depend on the country) or you can buy USB modems that you put SIM cards into and use AT commands to send text messages.

Which choice is good for you depends on what you are really trying to do and what your volume will be. A lot of providers also have email addresses like 5551234567@sms.provider.com that takes the email text and turns it into an SMS, but its not universal.


要使用批量SMS API,各种提供商尝试以下...

我使用相同的....



www.freesmsapi.org [ ^ ] < br $> b $ b

To use bulk SMS API from various providers Try following...
I am using the same....

www.freesmsapi.org[^]

Dim sURL As String
Dim objReader As StreamReader
sURL = "http://www.freesmsapi.org/sms.php?provider=site2sms&uid=XXXXXXXXXX&pwd=password&phone=" & lstsmsph.Items.Item(i) & "&msg=" & txtsmstext.Text
Dim sResponse As WebRequest
sResponse = WebRequest.Create(sURL)
            
Dim objStream As Stream
objStream = sResponse.GetResponse.GetResponseStream()
objReader = New StreamReader(objStream) 'Final Response


要从Vb.Net代码发送短信,我使用Sharp Voice。它可以访问Google语音帐户来发送短信,获取短信,甚至可以通话(我还没有尝试使用该库拨打电话)。 DLL是用C#编写的,它仍然可以在VB.net中使用。



你可以在这里得到它:



https://code.google.com/p/sharp-voice/ [ ^ ]
To Send SMS from Vb.Net code, I use Sharp Voice. It can access a Google Voice account to send SMS, get Messages, and even call (I haven't tried to use the library to make calls). The DLL is written in C#, which can still be used in VB.net.

You can get it here:

https://code.google.com/p/sharp-voice/[^]


这篇关于如何从VB.Net代码发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆