Sending SMS via C# using Way2Sms
26MAR
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);
not working please post source code
ReplyDelete