Sending SMS Via Windows Forms Application
Sending SMS Via Windows Forms Application
expand
Download Files:
BULKSMS.zip
Click on, Developers' Central. And provide the basic information during the registration process. After
completing the registration, a mail will be sent by them to your E-Mail address. Like this:
Here they will give you a Client ID for the API. Click on the click here link. They will automatically give you the
string for sending the message using the API.
The code behind this scenario is pretty cool. You just need the code they have given you. For using the API,
you need to make an object of the WebClient class. And using this object, all the web APIs can be used under
specific conditions. For the WebClient class you need to import a library writing Using System.Net at the field
level. Here is the button click code:
1.
try
2.
3.
4.
5.
to = textBox1.Text;
6.
message = textBox2.Text;
7.
8.
client.OpenRead(baseURL);
9.
10. }
11. catch (Exception exp)
12. {
13.
MessageBox.Show(exp.ToString());
14. }
Remember, the baseURL string is the same as they have provided. You need to replace the User Name,
Password and API ID.
If everything is OK, then the message will be sent to the number you inserted.
Thank you for reading.
Have a nice day.
Download 100% FREE Spire Office APIs
Send SMS using Web API Sending SMS Windows Form Application
http://bulksmsgateway.in/bulksms-offer-prices/