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

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

问题描述:

我正忙着在c#中开发桌面应用程序,我想在应用程序上添加短信功能。如何在Windows应用程序中发送和接收免费短信使用C#

Hi, I am busy with the development of the desktop application in c# and i would like to add SMS feature on the app. How to send and receive free SMS in windows Application Using C#

使用smsClient.dll使用way2sms帐户发送短信



您可以从以下链接下载smsClient.dll



http://skdotnetdeveloper.blogspot.in/2011/09/send-sms-in-cnet.html [ ^ ]



添加此dll的引用并使用以下代码发送短信



Use smsClient.dll for sending sms using your way2sms account

You can download smsClient.dll from the following link

http://skdotnetdeveloper.blogspot.in/2011/09/send-sms-in-cnet.html[^]

Add reference of this dll and use this following code for sending the sms

SmsClient.SendSms sms = new SmsClient.SendSms();
 //string status=sms.send(way2smsuserid, way2smspassword, message, tonumber);


http:// www。 smsco.it/tomcat/en/sms_tutorials/sms_from_c_sharp.jsp [ ^ ]

http://social.msdn.microsoft.com/Forums/en-US/microsoftdeviceemu/thread/a0c7be46-4bcf-4379-a1ce-c5778a1dc7cd [ ^ ]

使用.NET发送短信 [ ^ ]

如何使用SQL数据库从C#发送SMS消息 [ ^ ]
http://www.smsco.it/tomcat/en/sms_tutorials/sms_from_c_sharp.jsp[^]
http://social.msdn.microsoft.com/Forums/en-US/microsoftdeviceemu/thread/a0c7be46-4bcf-4379-a1ce-c5778a1dc7cd[^]
Sending SMS using .NET[^]
How to Send SMS Messages from C# using an SQL Database[^]


有多个免费短信提供商,如Way2sms.com,Freesms8.com,Fullonsms.com等。



基本的想法是程序化的http操作(POST,GET)等。



让我解释一下:



1.将登记信息发送到登录页面并获取cookie。

2.将cookie和POST传递给短信发送页面。



您可以在那里检查他们的登录页面,了解他们传递给登录页面的信息是什么,以及登录页面的相对URL等等。



谢谢,


Kuthuparakkal
There are multiple free sms providers like Way2sms.com, Freesms8.com, Fullonsms.com etc.

The basic idea around is programmatic http operations(POST, GET) etc.

Let me explain :

1. POST reqd info to Login page and Get cookie.
2. Pass the cookie and POST to sms sending page.

You can inspect their login pages there to understand what are the information they pass to login page, and what''s the login page relative url etc.

Thanks,

Kuthuparakkal