从C ++或C#应用程序发送短信 [英] Sending SMS from a c++ or c# application

查看:94
本文介绍了从C ++或C#应用程序发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,有什么方法可以将短信从应用程序发送到手机.

Hi friends is there any way by which we can send sms from a application to cell phone.

推荐答案

您的手机应该具有调制解调器支持或任何其他功能.连接到计算机时具有调制解调器功能的设备.从更专业的角度讲,解决方案是调制解调器支持AT命令,当AT命令发送到(连接调制解调器的串行端口)调制解调器时,它是一组标准命令,调制解调器执行适当的功能,并且所有调制解调器都能理解全部或部分AT命令.

因此,您可以将AT命令发送到调制解调器以发送短信等.请查看Wikipedia中的AT命令说明.

因此,要做到这一点的简单方法就是在整个AT命令功能周围建立一个.net包装器,该功能称为.b.net 4.0的 GSMComm ,它使用与之相关的所有与GSM通信相关的任务AT命令.

这样您就可以轻松发送短信,检查电话号码和其他内容的功能列表.

如果您无法下载该库,请给我发送邮件到mail@robinrizvi.info,我将为您提供libaray以及您需要的任何支持.

我已经在GSMCOMM周围实现了包装功能,这使发送短信变得小菜一碟.如果需要,请给我发邮件.
You should have your mobile phone with modem support or any device that has modem capabilitites when connectected to the computer. In a more technical sense the solution to this is that modem supports AT commands which are set of standard commands when sent to the (serial port on which modem is connected)modem does the appropriate fucntion and all modems understand all or a some of the AT commands.

SO you can send AT commands to your modem for sending sms etc. Check wikipedia for AT commands description.

So to do this the easy way there is a .net wrapper around this whole AT command functionality which is called GSMComm for .NET 4.0 which does all such GSM communication related tasks using AT commands.

So you get a list of functions to send sms, check phone number and other stuff with so much ease.

If you can not get to download the library, drop me a mail at mail@robinrizvi.info and I will provide you with the libaray as well as any support you need.

I have made wrapper functions around GSMCOMM that makea it a piece of cake to send sms. If you need that drop me a mail.


引用

http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx [ ^ ]

http://www.codeproject.com/KB/database/SMS_message_from_SQL.aspx [ ^ ]
Refer

http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx[^]

http://www.codeproject.com/KB/database/SMS_message_from_SQL.aspx[^]


一些简单的发送电子邮件(通过SMTP)和SMS短信的方法 [

这篇关于从C ++或C#应用程序发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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