且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用C#发送短信

更新时间:2022-11-27 10:33:44

您的首要任务是研究公司为发送短信提供的接口。您可能会发现他们有某种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