使用C#发送短信 [英] send SMS using C#

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

问题描述

您好,我在一家电信公司工作,该公司需要一个发送短信警报的程序,如何使用公司资源使用c#桌面应用程序发送短信警报。如果有人可以提供帮助,将会感激不尽。

解决方案

您的首要任务是研究公司为发送短信提供的接口。您可能会发现他们有某种Web应用程序或REST API来发送消息。一旦你知道你必须做出
的调用类型,并假设它们是某种类型的http调用,你就可以使用为此目的提供的类之一从C#执行它们,例如WebClient或HttpWebRequest。 / p>

https://www.developershome.com/sms/howToSendSMSFromPC4.asp



Hello, I'm working in a telecom company which requires a program for sending sms alerts how can I use the companies resources to send sms alerts using c# desktop application. Will be thankful if anyone can help.

解决方案

Your first task is to research what is the interface that the company provides for sending SMS messages. It is likely that you will find that they have some kind of web application or REST API for sending the messages. Once you know the type of calls that you have to make, and presuming that they are some type of http calls, you can perform them from C# using one of the classes provided for this purpose such as WebClient or HttpWebRequest.

https://www.developershome.com/sms/howToSendSMSFromPC4.asp


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

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