Here I'm showing you how to send SMS using your C# .Net Application. Please use the following instructions and you are ready to go within 8-10 minutes.
Here some requirements for this application:
- Active Internet connection
- Download the SMSClient DLL (Here)
- Visual Studio 10 (Visual Studio 2010) or above (the SMSClient DLL works only in Visual Studio 10 or above)
- .Net 4.0 or above
Now here are some easy steps to follow.
- Create a new C# Windows Application
- Design your application page something like this:
- Now add a reference for the SMS Client Dll, as in:
Projects -> Add reference -> Browse -> select your SMS client DLL
- Now put the following code in your "Send" buttons Click Event
First of all add a "using" for the smsclient dll, as in:
Now use this code to send the sms and check the internet status and whether users exist.
SendSms sms = new SendSms();
string status = sms.send(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text);
if (status == "1")
else if (status == "2")
MessageBox.Show("No Internet Connection");
MessageBox.Show("Invalid Login Or No Internet Connection");
- Now run your application and enjoy
- This application works as a charm, but it has some drawbacks which I described below:
- An active internet connection is required.
- The .Net 4.0 Framework is needed with Visual Studio 10
- The application works in India only because the Way2sms provides service in India only, but they say they will start services in other nations shortly, so after that we will be able to use this application for those nations too.