-1

I am building a desktop app in Visual C# 2.0 that can send sms through way2sms.com. anyone of you ve tried such thing...? please help.

Charles
  • 50,943
  • 13
  • 104
  • 142
Amit
  • 25,106
  • 25
  • 75
  • 116
  • 2
    Bad question. Is this spam advertising their service? You should have specified which protocol the API uses (HTTP REST, SMTP, SOAP, etc). – Alex L Oct 19 '09 at 18:41
  • 1
    This question isn't answerable, please see the FAQ. Perhaps you can reword your question with a specific question that we can tackle? – Jed Smith Oct 19 '09 at 18:41
  • @JedSmith This is not really spam. Way2sms.com relies on ads. They wouldn't want developers to be directly accessing the site. Free sms is a big thing in India and making apps for such process is considered profitable. – Ufoguy Jan 08 '14 at 05:06

6 Answers6

3

This link has a solution

http://www.aswinanand.com/2008/07/send-free-sms-web-service/

We can pass parameters to the URL provided with the help of a Web Request class. I did it with following lines

HttpWebRequest request = (HttpWebRequest) WebRequest.Create("_http://www.aswinanand.com/sendsms.php?uid=" + this.txtUserID.Text + "&pwd=" + this.txtPassword.Text + "&phone=" + this.txtToMobileNo.Text + "&msg=" + this.txtMessage.Text);

StreamReader reader = new StreamReader(request.GetResponse().GetResponseStream(), Encoding.UTF8);
return reader.ReadToEnd();

There is another tool implemented in java available at http://way2sms.codeplex.com/, which i am implementing in C# now.

Pandian
  • 8,848
  • 2
  • 23
  • 33
Amit
  • 25,106
  • 25
  • 75
  • 116
1

Never used way2sms. I used clickatell. It works great even on webservers.

http://www.clickatell.com/developers/api_comobject.php

Wout
  • 964
  • 1
  • 6
  • 19
  • This isn't a solution to the problem outlined, and would probably have been better as a comment rather than an answer. – gpmcadam Oct 20 '09 at 11:01
  • The question was "such thing". So I find this still relevant to the question asked. – Wout Oct 21 '09 at 11:50
1

here is a good article on sending sms in c# using way2sms

http://codeglobe.in/api/way2sms/17-way2sms-api.html

irshad
  • 19
  • 1
0

For that you need to input the API for SMS and integrate in your asp.net application.

Download SOurceCode HEre

http://alfasms.alfredfrancis.in/?uname=YOUR_USERNAME&pass=YOUR_PASSWORD&to=YOUR_RECEPTIANT&mess=YOUR_MESSAGE&gateway=YOUR_GATEWAY

>> Where YOUR_USERNAME your way2sms/160by2/fullonsms/sms440/site2sms USERNAME(ie mobile number)
>>Where YOUR_PASSWORD your way2sms/160by2/fullonsms/sms440/site2sms PASSWORD.
>> Where YOUR_RECEPTIANT is to which number you want to send SMS.
>> Where YOUR_MESSAGE is the message you want to send.
>> Where YOUR_GATEWAY is way2sms/160by2/fullonsms/sms440/site2sms.

string connectionString = "<a href="http://alfasms.alfredfrancis.in/?uname=YOUR_USERNAME&pass=YOUR_PASSWORD&to=YOUR_RECEPTIANT&mess=YOUR_MESSAGE&gateway=YOUR_GATEWAY">http://alfasms.alfredfrancis.in/?uname=YOUR_USERNAME&pass=YOUR_PASSWORD&to=YOUR_RECEPTIANT&mess=YOUR_MESSAGE&gateway=YOUR_GATEWAY</a>";

try
 {

System.IO.Stream SourceStream = null;

System.Net.HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(connectionString);

myRequest.Credentials = CredentialCache.DefaultCredentials;

HttpWebResponse webResponse = (HttpWebResponse)myRequest.GetResponse();

SourceStream = webResponse.GetResponseStream();

StreamReader reader = new StreamReader(webResponse.GetResponseStream());

string str = reader.ReadLine();

}

catch (Exception ex)
 {

}
Moiz
  • 67
  • 2
  • 2
  • 6
0

i hav developed an api of way2sms and other providers which can be directly used by everyone.. check it out at http://ubaid.tk/sms/

you can use the web page created by me, or u can use the api structure.. for example, your application can directly fwd the request to

http://ubaid.tk/sms/sms.aspx?uid=99999xxxxx&pwd=12345&msg=your sms text which u want 2 send&phone=9996669990&provider=way2sms

where uid is the way2sms userid, pwd is the way2sms password, msg is ur message which needs to be sent, and phone is the phone number wher u want to send the sms.. the differen providers are way2sms, fullonsms, smsinside and tezsms..

works 100%, all the time.. :)

cheers..

Ubaid
  • 269
  • 1
  • 4
  • 15
  • that was an awesome trick... can you please help me with some source code.. how you made it to send sms from asp.net – Abbas Sep 08 '11 at 09:44
-1

Please visit

http://mohanramphp.kodingen.com/blog/2011/01/13/send-free-sms-%E2%80%93-web-service/

At present aswinanand codes for sending sms is inactive.

Usage of sending sms is given in blog.

Short Example Usage:

http://mohanramphp.elementfx.com/sms/index.php?uid=9933445566&pwd=password&phone=9812345678;9933445566&msg=This is sample message

Mohan Ram
  • 8,345
  • 25
  • 81
  • 130