Hi,
I registered sms package from sms provider and they provided me with an api to send sms.
How to send sms in windows application vb.net using api ? Is it possible to send sms from windows app with internet connetion.
Please help its urgent
Printable View
Hi,
I registered sms package from sms provider and they provided me with an api to send sms.
How to send sms in windows application vb.net using api ? Is it possible to send sms from windows app with internet connetion.
Please help its urgent
Hi,
depends on the sms provider, most can be sent an email with the information which is simple enough, for eg to send sms to mobile number 123456789 could be
[email protected]
with the body as the text. what language is the API in? generally these upload data to the gateways database for sending
Hi,
Thanks for the reply.
But I dont want to send it as mail. The api I have got is something like this:
http://websiteurl.jsp?usr=username&p...g=Welcome&mt=0
They gave me this url
now how to use this url to send sms from vb.net windows application..
Please help!!Its urgent
Hi,
You should be able to just pass the paramiters to the url and navigate to it, I would use a hidden webbrowser but I assume the same can be done with a http request.
so you pass it the details in the link
http://thewebsitetheygaveyou.jsp?usr...yourmesagegoes here for your msg&mt=0
did they give you a help link? the above would work if you typed into your browser and hit go (dont forget to change websiteurl to the real one)
Hi,
Thanks for ur reply.Actually Im new to vb.net thats why I dont know how to cal it.
Can you give example code for this....
Ya, I will surely put the real url...but I want it something like user clicks on send sms button and the sms will go and juz a message box to user "sms is sent succesffuly". I know i have to write code in button_click but dont know what to write in that.Quote:
I would use a hidden webbrowser but I assume the same can be done with a http request.
Thanks in advance
OK, so put say one button, a webbrowser control (set visible to false), and 2 textboxs on a form, textbox1 will be number, textbox2 message
im assuming msisdn is the mobile number to send to and sid is what name it says on the phone
code under button (i havent tested so maybe a bug)
Code:dim url as string
dim mnumber as string
dim message as string
if textbox1.text = "" then
msgbox("please enter number")
exit sub
elseif len(textbox1.text) < 10 then '10 length of mobile phone number
msgbox("please enter correct mobile number")
exit sub
elseif isnumeric(textbox1.text) then
if textbox2.text = "" then
msgbox("please enter a message")
exit sub
elseif len(textbox2.text) > 160 then
msgbox("please limit message to 160 characters")
exit sub
else
'do our code
mnumber = textbox1.text
message = textbox2.text
url = "http://thewebaddy.jsp/?usr=username&pass=password&msisdn=" & mnumber & "&sid=myname&msg=" & message
webbrowser1.navigate(url)
end if
else
msgbox("please enter only a number")
exit sub
end if
Hi,
Thanks for the quick reply...I will try it and let you know.
One another doubt is :Please tell me if I can do the below thing :
I will have one txtSearch i.e textbox in a form and a button"Search" . When user enters any thing and clicks search .....he should be able to see the details from the google... I mean if we search in google.com the results we get that i want to display...but only the results (no signs of google in that)...Its like showing Im having the database and showing the result...
Iam sorry if u didnt understand my problem,,You want me to explain it more?
Hi,
you are welcome for the reply, with the other question really you should be opening a new thread but of course what you say is doable. The question begs why you would want google search in a .net program but im sure you have a reason
It was an example of google search..I want to link to some other website. Oh if we can do can you provide me some link ...or hint to do that ...because if user enters inthe textbox of form how can i assing to the textbox of website...withits name or location of the texbox placed in webpage? Ya i will create a new thread
Hey I tested the code and it worked for me. but as Im new to this forum I dont know how to mark it as right answer..Anyways thanks a lot....
Glad the code worked :)