Results 1 to 10 of 10

Thread: how to send sms

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    15

    Exclamation 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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: how to send sms

    Here are a number of threads on this subject.

  3. #3
    Addicted Member
    Join Date
    Mar 2006
    Posts
    180

    Re: how to send sms

    We use a web service provided by this company

    www.24x.com

    HTH

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    15

    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

  5. #5
    Fanatic Member
    Join Date
    Jul 2006
    Location
    Anchorage, Alaska
    Posts
    545

    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

  6. #6
    Addicted Member
    Join Date
    Mar 2006
    Posts
    180

    Re: how to send sms

    Quote 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

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    15

    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

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  9. #9
    Addicted Member
    Join Date
    Mar 2006
    Posts
    180

    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.

  10. #10

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    15

    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
  •  



Click Here to Expand Forum to Full Width