|
-
Jul 19th, 2007, 02:56 AM
#1
Thread Starter
New Member
how to send sms
How to send sms
using visual basic code.
1. : if my mobile is connected via usb.
2.: other method via internet like yahoo messanger and rediffbol
Plese guide me.
Thanks in advance
Adarsh Patel
-
Jul 19th, 2007, 07:21 AM
#2
Re: how to send sms
Here are a number of threads on this subject.
-
Jul 25th, 2007, 05:06 PM
#3
Addicted Member
Re: how to send sms
We use a web service provided by this company
www.24x.com
HTH
-
Jul 26th, 2007, 03:19 AM
#4
Thread Starter
New Member
Re: how to send sms
Thanks MondeoST24
i show the site.
but i want to develop the software in vb6 or vb.net
if you have any suggestion plz help me
Thanks,
Adarsh Patel
-
Jul 31st, 2007, 02:06 AM
#5
Fanatic Member
Re: how to send sms
Don't most cell phone numbers have an email address associated with them depending on there network provider?
Please RATE posts, click the RATE button to the left under the Users Name.
Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.
"As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood
-
Jul 31st, 2007, 03:11 AM
#6
Addicted Member
Re: how to send sms
 Originally Posted by compad
Thanks MondeoST24
i show the site.
but i want to develop the software in vb6 or vb.net
if you have any suggestion plz help me
Thanks,
Adarsh Patel
You can sign up for a free account with 24x. Then use the following code
Code:
Public Class smsmessage
Public Shared Function URLEncode(ByVal strData As String)
Dim I, strTemp, strChar, strOut, intAsc
strTemp = Trim(strData)
For I = 1 To Len(strTemp)
strChar = Mid(strTemp, I, 1)
intAsc = Asc(strChar)
If (intAsc >= 48 And intAsc <= 57) Or _
(intAsc >= 97 And intAsc <= 122) Or _
(intAsc >= 65 And intAsc <= 90) Then
strOut = strOut & strChar
Else
strOut = strOut & "%" & Hex(intAsc)
End If
Next
URLEncode = strOut
End Function
Public Shared Function SendMessage(ByVal strUsername As String, ByVal strPassword As String, ByVal strSMSTo As String, ByVal strSMSFrom As String, ByVal strSMSMsg As String) As String
Dim xmlhttp, sResponse
strUsername = URLEncode(strUsername)
strPassword = URLEncode(strPassword)
strSMSTo = URLEncode(strSMSTo)
strSMSFrom = URLEncode(strSMSFrom)
strSMSMsg = URLEncode(strSMSMsg)
xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open("POST", "http://www.24x.com/sendsms/sendsms.aspx", False)
xmlhttp.setrequestheader("Content-Type", "application/x-www-form-urlencoded")
xmlhttp.send("user=" & strUsername & "&password=" & strPassword & "&smsto=" & strSMSTo & "&smsfrom=" & strSMSFrom & "&smsmsg=" & strSMSMsg)
sResponse = xmlhttp.responsetext
xmlhttp = Nothing
SendMessage = sResponse
End Function
End Class
-
Jul 31st, 2007, 01:02 PM
#7
Thread Starter
New Member
Re: how to send sms
Dear MondeoST24,
Thanks for your help.
but i want to make use all possible ways, so plz guide me if i can send sms using mobile connected to my pc.
Thanks,
Adarsh Patel
-
Aug 1st, 2007, 04:44 PM
#8
Re: how to send sms
As Hack said, there are a number of threads on the subject. No one is going to write code for you that's already posted on the site - you're going to have to look for it.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Aug 2nd, 2007, 08:36 AM
#9
Addicted Member
Re: how to send sms
What make of mobile phone are you using? What you're trying to do may depend on the existance of an SDK from the phone manufacturer.
-
Aug 3rd, 2007, 02:45 AM
#10
Thread Starter
New Member
Re: how to send sms
Recently i have developed hyper terminal program
and whenever i am searching help for my hyper terminal code, i found code which can connect phone and hyperterminal program,
so i thought that with using my hyper terminal program can i use to send message to mobile, i am also searchig this right now....
if i found will also post the code...
Thanks,
Adarsh Patel
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
|