Well many people asked how to implement the Way2Sms Api and Code and hence I provide them the Code.
DEMO :
Instructions : Enter Your Way2Sms Mobile Number , Way2Sms Password , The person you want to send and the Message . Message will be sent from your Way2Sms Account
I Have Used Free Hosting provided to me by applied Innovations . For Quick Sms You can visit my link (without copyrights) Over HERE . Thanking Applied Innovations For providing free Hosting Space .
Source Code :DOWNLOAD IT FROM HERE
Steps To Use It In Your Application :
Step 1 : In Your Default.aspx Page Add This HTML code
Step 2: Add a asp:Button in the in your application also add a click event which is going to fired u when u click the button . The Code Is :
Step 3 :Now In the Code-Behind of this file that is Default.aspx.cs we add the event of button . Which loads the Api In the Iframe and the message gets sent . We Are using ubaid.tk servers for better performance .... The Code-behind Code :
Download The Code and Enjoy........................... Cheers
DEMO :
Instructions : Enter Your Way2Sms Mobile Number , Way2Sms Password , The person you want to send and the Message . Message will be sent from your Way2Sms Account
I Have Used Free Hosting provided to me by applied Innovations . For Quick Sms You can visit my link (without copyrights) Over HERE . Thanking Applied Innovations For providing free Hosting Space .
Source Code :DOWNLOAD IT FROM HERE
Steps To Use It In Your Application :
Step 1 : In Your Default.aspx Page Add This HTML code
<iframe runat="server" style="visibility:hidden;" id="sms" ></iframe>
Step 2: Add a asp:Button in the in your application also add a click event which is going to fired u when u click the button . The Code Is :
<asp:Button ID="Button1" runat="server" onclick="Button1_Click"
Text="Send Sms" />
Step 3 :Now In the Code-Behind of this file that is Default.aspx.cs we add the event of button . Which loads the Api In the Iframe and the message gets sent . We Are using ubaid.tk servers for better performance .... The Code-behind Code :
protected void Button1_Click(object sender, EventArgs e)
{
sms.Attributes.Add("Src", "http://ubaid.tk/sms/sms.aspx?uid=ur_mobile_no&pwd=ur_mobile_password&msg=ur_message&phone=to_whom_u_wannasend_to&provider=way2sms");
}
Download The Code and Enjoy........................... Cheers
39 comments:
Thanks for this code.
How to send bulk or group sms ?
Yes I got it by using comma.
Can u help it for other sms websites ?
how can i include this code in my asp.net project?
Downlaod And Use the API .....
i have downloaded the api.can u pls brief the steps to use it in my application? i'm new to asp.net
I Have updated my post describing the needed steps for newbies in asp.net and csharp , I hope u r clear in all ur doubts regarding this tutorial .
What is the code ? Please provide me the code it's urgent.
@ Aatish I have given the source code of my application Download and use the Code.
Regards
Thanks for you Urgent reply.
Actually what I am trying to say is that I don't what to use the link("http://ubaid.tk/sms/sms.aspx?uid=ur_mobile_no&pwd=ur_mobile_password&msg=ur_message&phone=to_whom_u_wannasend_to&provider=way2sms""). I need the code to access way2sms by myself.
Please guide me.
Actually,
these sms service providers constantly keep changing some things on their sites which require frequent update on my server too. By accessing the api you dont have to worry about updating your code, since my api will be updated constantly.But still for ur sake I am soon going to publish the Api. The Api may not work after some time..
Regards
Vaibhav Maheshwari
Please explain the meaning of "The Api may not work after some time.." Because I had implemented the Api link for now in an application. And now my application is dependent on link("http://ubaid.tk/sms/sms.aspx?uid=ur_mobile_no&pwd=ur_mobile_password&msg=ur_message&phone=to_whom_u_wannasend_to&provider=way2sms"")
It's already been so late and after hard work of three days I had implemented it in my application and now you are telling me that it will not work after some time. I had some commitments with my customers.
Please help me out.
Sorry ,
u misunderstood me my api that is "http://ubaid.tk/sms/sms.aspx?uid=ur_mobile_no&pwd=ur_mobile_password&msg=ur_message&phone=to_whom_u_wannasend_to&provider=way2sms" will always work in any conditions , I will update it regularly.This is not base API as u said in ur 2nd Comment that u want the base Api. I have to update the base api regularly in able to keep this api working and efficient , I am soon going to publish the base API which may not work after sometime as u may not be able to update or play with it . My first base api was This. The API above mentioned will always work in all conditions.
Prasanna: i need to send sms from a web service that does not have a Default.aspx page.. can i use this api?
You will have to make ur own controls then u can surely use the api given above..
Can you please tell me how can I send a sms to more than one number at same time ?
Use this 'sms.Attributes.Add("Src", "http://ubaid.tk/sms/sms.aspx?uid=ur_mobile_no&pwd=ur_mobile_password&msg=ur_message&phone=to_whom_u_wannasend_to&provider=way2sms");' again.. . Adding commas won't work here.
Prasanna: can u pls elaborate on the steps for creating my own controls and using the api in a web service? its urgent
Thanks for your frequent reply.
Actually I am using it in windows based Application and code is following:
Dim link As String = "http://ubaid.tk/sms/sms.aspx?uid=" + USERID & "&pwd=" + PASSWORD & "&msg=" + SMS_MESSAGE & "&phone=" + SMS_MOBILE & "&provider=" & SMS_PROVIDER
Dim req As HttpWebRequest = DirectCast(WebRequest.Create(link), HttpWebRequest)
Dim resp As HttpWebResponse = req.GetResponse()
Dim stream As System.IO.Stream = resp.GetResponseStream()
Dim reader As New System.IO.StreamReader(stream)
req.Abort()
resp.Close()
reader.Close()
This is my kind request that you please explain me by making alteration in my code according to the need will be more helpful.
Well this article is for newbies go here . I have updated the api here , I hope it will work for u . The base api of this application is here http://www.code-globe.co.cc/2010/12/way-2-sms-free-api.html
Sorry,
I do not VB.NET ....
I had converted the code in C#. The code is following:
string link = "http://ubaid.tk/sms/sms.aspx?uid=" + USERID + "&pwd=" + PASSWORD + "&msg=" + SMS_MESSAGE + "&phone=" + SMS_MOBILE + "&provider=" + SMS_PROVIDER;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(link);
HttpWebResponse resp = req.GetResponse();
System.IO.Stream stream = resp.GetResponseStream();
System.IO.StreamReader reader = new System.IO.StreamReader(stream);
req.Abort();
resp.Close();
reader.Close();
This is my kind request that you please explain me by making alteration in my code according to the need of sending same sms to multiple numbers at same time. It will be more helpful.
How to Send Group SMS please provide the api.
Thanks
thank u very much for this api
this api perfectly works in asp.net
Hi... Thank u so much for the api. You made it so easy. I am using this api in my desktop application project. Will u do any modification to the api ("http://ubaid.tk/sms/sms.aspx?uid=ur_mobile_no&pwd=ur_mobile_password&msg=ur_message&phone=to_whom_u_wannasend_to&provider=way2sms")
in future? Whether it affects my project functionality? Please let me know soon as possible.
Sorry for the wrong demo , will soon fix it ..
No I won't change the API in future so continue using the API
Thanks Bro!
Pls help me to make a web page for receivng sms from mvaayoo and sending back to user, the message should go from oracle data base.
@Varun Maggo thnks
@Anonymous
Don't know much about mvaayoo but still will try my best,if u have any problem regarding the mvaayoo API contact me.. :)
I have followed your instructions but this is not working in my project.The os on my system is vista.
I am visual studio 2010.
Plz solve my problem
Sorry ! I mean I am using visual studio 2010
Cannot see the reason why you are not able to use the API
hey,It worked .
Actually smtp service was not installed.
Thanks a lot
How to Update the URL http://ubaid.tk/sms/sms.aspx for more features. Because I can not Login from my way2sms userid...
LOL DONT USE IT!!!
IF YOU USE THAT API, YOUR WAY2SMS ACCOUNT USERNAME/PASSWORD WILL BE AVAILABLE TO WHOEVER OWNS ubaid.tk :P :P
@Vaibhav,
Thanks for publishing the article on your site. I'm honored.
@Anonymous,
I am not storing any information you pass on to my site, whether it be your username, passwords or any personal messages you send to your near and dear one's. I strongly believe in Karma. What you do today, will come back to you tmr.
Cheers,
Ubaid
i cant able to download api. can you please send the api to my mail id. its kamalzeus@gmail.com
Thanks for giving demo of api integration your code is beneficial for those who want to send large number of messages in single click.Bulk SMS API
Post a Comment