RSS

Sending SMS via C# using Way2Sms

26 Mar
Create a new windows application.
Drag and drop 3 text boxes, 1 rich text box, 4 label, 1 button onto the form.
Rename the textboxes as following:
  • textbox1—>textBoxId
  • textbox2—>textBoxPassword
  • textbox3—>textBoxSendTo
  • richTextbox1—>richTextBoxText
  • button1—->buttonSend

In the solution explorer right cick on the Reference and add the following reference to the project:




Include the following lines:
using System;
using SMSClientLib;
using System.Net;


Double click on the button and add the following snippet to the click event:
string status = “”;
CookieContainer cookie = Login.Connect(textBoxId.Text, textBoxPassword.Text, out status);
string[] siteParameters = Login.GetSiteParameters(cookie);
string messgeSentResult = SendSMS.Send_Processing(textBoxSendTo.Text, richTextBoxText.Text, cookie, siteParameters);

 

Here’s the ashKAP Texter:

Advertisements
 
11 Comments

Posted by on March 26, 2011 in C#

 

11 responses to “Sending SMS via C# using Way2Sms

  1. diya

    March 28, 2011 at 10:06 PM

    thanks for sharing …

     
    • ashKAP

      March 28, 2011 at 10:32 PM

      u’re welcome πŸ™‚

       
  2. Divpreet Singh

    April 15, 2011 at 12:03 PM

    Hello Ashish,
    Thanks for sharing the wonderful trick.
    Its working fine.
    Have you also shared the above shown “ashKap Texter ” or I couldn’t find its link?

     
  3. buy tramadol

    April 17, 2011 at 5:35 PM

    Great site. Keep doing.

     
  4. Khushang

    April 25, 2011 at 4:12 PM

    Hey man aawesome yar…like it so much…

     
  5. Pradeep

    April 29, 2011 at 1:09 PM

    thank u soo much

     
  6. pramod reddy

    June 21, 2011 at 8:43 PM

    thanks for sharing its working

     
  7. chethan

    July 25, 2011 at 11:34 PM

    thanks a lot for this… it helps me lot… πŸ™‚

     
  8. Manash Pratim Das

    August 10, 2011 at 9:30 PM

    Thank You so much… Its a really very clean and easy process that worked best for me……

     
  9. Vipul Kania

    September 20, 2011 at 10:49 PM

    Thanks a lot i was finding for the same thing..
    u have solved my problem thanks a lot ………………………

     
  10. arockiam

    December 26, 2011 at 1:05 PM

    thanks a lot.. It was really usefull

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: