如何使用C#从Winform向手机发送短信 [英] How to send sms from winform to mobile phones using c#

查看:293
本文介绍了如何使用C#从Winform向手机发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伟大的程序员
我知道这是这里的常见主题,但我真的需要对此进行详细说明,因为我以前从未使用过短信.我有一个带有病人表格"形式的winform,该表格连接到数据库中的病人表,现在我希望每当一个病人或一组病人要进行检查(即,他们的检查日期的一天)时,装入患者表格后,将显示"pup up"(小窗口)窗口,其中包含所有需要检查的患者及其电话号码的列表.在表格上还应有一个
title文本框,用于消息标题,文本框,用于输入消息,以及一个sendclick,用于onclick将短信发送给那些患者

Hi great programmers
i know this is a common topic here but i really need a detailed explanation about this because i have never worked with sms before. I have a winform with a form ''patientform'' that connect to a patient table in a database, now i want that when ever a patient or group of patient is due for check up(i.e a day to their checkup date), a pup up window should be displayed when the patient form is loaded, with a list of all the patient due for check up and their phone numbers.on the form there should also be a
titletextbox for heading of message, and a textbox to input the message and a sendbutton which onclick send sms message to those patient

推荐答案

,您需要第三方API或移动GSM连接用于sendig SMS ..

一些最好的例子在这里

如何从应用程序发送SMS消息 [ ^ ]

甚至更好的是

http://www.ozekisms.com/index.php?owpn=230 [ ^ ]
you need third party API or Mobile GSM connection for sendig SMS..

some of the best examples are here

How to send an SMS message from an application[^]

and even more best is

http://www.ozekisms.com/index.php?owpn=230[^]


如果知道这是一个常见的话题,那为什么要问这个问题?

Google将帮助您找到许多完整项目和解释的示例,或者该网站上的搜索工具也将执行同样的操作.

我们不在这里是因为您太懒了,无法导航到google并输入一些文字.如果您遇到一个特定的问题,而不是为我做这件事",请回来提出一个问题.在那之前,请不要浪费时间和我们的时间.
If you know it is a common topic here, then why are you asking the question?

Google will help you find many, many examples of full projects and explanations, or the Search facility on this site will do the same.

We are not here because you are too lazy to navigate to google and type in a few words of text. If you get a specific problem rather than "do this for me" please come back and ask it as a question. Until then, stop wasting your time and ours.


首先,您不能仅发送带有Winform的文本消息.
您需要一些硬件来执行此操作.

您可以在线使用文本消息服务,如果这样的话,他们应该为您提供有关如何执行此操作的API和文档.

您也可以使用USB将移动电话插入计算机.
然后使用.net中的SerialPort类将winform连接到电话.
从那里,您可以发送AT命令以向手机提供操作说明(您还可以从手机中获取信息).

我以前使用AT命令完成过此操作,效果很好.
祝你好运.
First of all, you cannot send a textmessage with a winform alone.
You need some hardware to do this.

You can use a textmessage service online, if that is the case they should provide you with their API and documentation on how to do this.

You can also plug in a mobile telephone to your computer with usb.
Then connect your winform to the phone using the SerialPort class in .net.
From there you can send AT commands to give your phone instructions on what to do (you can also get information from the phone).

I have done this using AT commands before, it works very well.
Good luck.


这篇关于如何使用C#从Winform向手机发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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