Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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#
Posted

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

C#
SmsClient.SendSms sms = new SmsClient.SendSms();
 //string status=sms.send(way2smsuserid, way2smspassword, message, tonumber);
 
Share this answer
 
Comments
ridoy 20-Aug-12 2:48am    
good one..
Member 8018897 20-Aug-12 10:35am    
do I have to use way2sms account only for this dll or any of account? I think way2sms works only for people who are in India and I'm in South Africa
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
 
Share this answer
 
Problem is not solved its showing status as -7
SendSms sms = new SendSms();

string status = sms.send("987654321", "PASSWORD", "hello", "987654321");

if (status == "1")
{

MessageBox.Show("Message Send");

}

else if (status == "2")
{

MessageBox.Show("No Internet Connection");

}

else
{

MessageBox.Show("Invalid Login Or No Internet Connection");

}
 
Share this answer
 
Comments
jayu28791 27-May-13 2:57am    
Hey have u figure out something i am getting Message "Invalid Login Or No Internet Connection" though the login is correct and there is a internet connection
Member 12832463 10-Nov-16 2:12am    
SMSClient.SendSms.send() does not work
Member 13413088 10-Oct-17 22:04pm    
I'm getting status=2; No internet connection. Although there is an internet connection

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900