-
Feb 12th, 2013, 06:18 AM
#1
Thread Starter
Member
[RESOLVED] send sms from windows application
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
-
Feb 12th, 2013, 11:01 PM
#2
Fanatic Member
Re: send sms from windows application
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
12345679@smsprovider.com
with the body as the text. what language is the API in? generally these upload data to the gateways database for sending
My CodeBank Submissions
- Listbox with transparency and picture support - Click Here
- Check for a true internet connection - Click Here
- Open Cash drawer connected to receipt printer - Click Here
- Custom color and size border around form - Click Here
- Upload file to website without user logins, includes PHP - Click Here
- List All Removable USB Storage Devices - Click Here
- Custom On/Off Slide Control - Click Here
- Insert multiple rows of data into one database table using parameters - Click Here
- Trigger USB/Serial Cash Drawer - Click Here
-
Feb 13th, 2013, 12:33 AM
#3
Thread Starter
Member
Re: send sms from windows application
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
-
Feb 13th, 2013, 01:16 AM
#4
Fanatic Member
Re: send sms from windows application
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)
My CodeBank Submissions
- Listbox with transparency and picture support - Click Here
- Check for a true internet connection - Click Here
- Open Cash drawer connected to receipt printer - Click Here
- Custom color and size border around form - Click Here
- Upload file to website without user logins, includes PHP - Click Here
- List All Removable USB Storage Devices - Click Here
- Custom On/Off Slide Control - Click Here
- Insert multiple rows of data into one database table using parameters - Click Here
- Trigger USB/Serial Cash Drawer - Click Here
-
Feb 13th, 2013, 01:40 AM
#5
Thread Starter
Member
Re: send sms from windows application
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....
I would use a hidden webbrowser but I assume the same can be done with a http request.
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.
Thanks in advance
-
Feb 13th, 2013, 02:09 AM
#6
Fanatic Member
Re: send sms from windows application
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
My CodeBank Submissions
- Listbox with transparency and picture support - Click Here
- Check for a true internet connection - Click Here
- Open Cash drawer connected to receipt printer - Click Here
- Custom color and size border around form - Click Here
- Upload file to website without user logins, includes PHP - Click Here
- List All Removable USB Storage Devices - Click Here
- Custom On/Off Slide Control - Click Here
- Insert multiple rows of data into one database table using parameters - Click Here
- Trigger USB/Serial Cash Drawer - Click Here
-
Feb 13th, 2013, 02:22 AM
#7
Thread Starter
Member
Re: send sms from windows application
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?
-
Feb 13th, 2013, 02:26 AM
#8
Fanatic Member
Re: send sms from windows application
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
My CodeBank Submissions
- Listbox with transparency and picture support - Click Here
- Check for a true internet connection - Click Here
- Open Cash drawer connected to receipt printer - Click Here
- Custom color and size border around form - Click Here
- Upload file to website without user logins, includes PHP - Click Here
- List All Removable USB Storage Devices - Click Here
- Custom On/Off Slide Control - Click Here
- Insert multiple rows of data into one database table using parameters - Click Here
- Trigger USB/Serial Cash Drawer - Click Here
-
Feb 13th, 2013, 02:34 AM
#9
Thread Starter
Member
Re: send sms from windows application
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
-
Feb 13th, 2013, 02:46 AM
#10
Thread Starter
Member
Re: send sms from windows application
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....
-
Feb 13th, 2013, 03:00 AM
#11
Fanatic Member
Re: send sms from windows application
Glad the code worked
My CodeBank Submissions
- Listbox with transparency and picture support - Click Here
- Check for a true internet connection - Click Here
- Open Cash drawer connected to receipt printer - Click Here
- Custom color and size border around form - Click Here
- Upload file to website without user logins, includes PHP - Click Here
- List All Removable USB Storage Devices - Click Here
- Custom On/Off Slide Control - Click Here
- Insert multiple rows of data into one database table using parameters - Click Here
- Trigger USB/Serial Cash Drawer - Click Here
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|