如何使用C#在Windows应用程序中发送免费短信

如何使用C#在Windows应用程序中发送免费短信

问题描述:

你好朋友,

我在Windows应用程序中使用C#更好..你知道如何使用C#windows应用程序向任何移动网络发送短信..如果您有任何演示或任何代码,请为此编写的代码是什么呢?请让我对我来说太紧急....
i会真的让你感兴趣...

i m bigner in windows Application using C#.. well do you have any idea how can i send SMS to any mobile network using C# windows Application .. what is the Code to write for that if you have any demo or any code then please let me its too urgent for me.... i will really appricate you...

提前致谢

Naim Khan

Naim Khan

首先你需要找到一种方法,在那里你可以发送免费短信。互联网和手机之间没有直接连接,所以你需要找一个充当网关的人。

First of all you need to find a way, where you are allowed to send free SMS. There is no direct connection between the internet and the phones, so you need to find someone who acts as gateway.

然后你可以使用给定的网关。如果运气好的话,提供商会为您提供一个很好的API(例如Web服务)。但正常情况下短信需要钱(至少在德国这里),所以很难找到这样的提供商。有些人在他们的网页上提供免费短信
,他们通过页面上的广告赚钱。因此,可以简单地向他们发送Web请求(这不符合他们的兴趣,因此他们经常让用户将图片的字符读取到文本框,以便像您这样的程序
不能滥用他们的服务!)

And then you can use the given gateway. If you are lucky, the provider will give you a nice API (e.g. a Webservice) you could use. But normaly a SMS cost money (at least here in germany) so it can be hard to find such a provider. Some people offer free SMS on their webpage and they earn money through ads on the page. So it could be possible to simply send web requests to them (Which is not in their interest so they often make the user to read characters of a picture to a textbox so that a program like yours cannot misuse their service!)

因此,如果你想知道如何使用它,那么你应该首先告诉我们你想要使用什么服务。然后我们可以帮助您详细说明如何编写这样的解决方案。

So if you want to know, how to use it, then you should first tell us, what service you want to use. Then we could help you in detail how to write such a solution.

亲切的问候,

Konrad