CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2014
    Posts
    2

    sending sms to mobile number through huawei modem

    developing an academic application that is supposed to send outstanding school fees to students' parent's mobile number through the modem

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: sending sms to mobile number through huawei modem

    And what is your question?
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2014
    Posts
    2

    Re: sending sms to mobile number through huawei modem

    can i get vb code to send SMS of outstanding school fees to parents mobile number stored in a database through huawei modem

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: sending sms to mobile number through huawei modem

    Did you try to google for it?
    Victor Nijegorodov

  5. #5
    Join Date
    Apr 2014
    Posts
    1

    Re: sending sms to mobile number through huawei modem

    Quote Originally Posted by Kamau View Post
    can i get vb code to send SMS of outstanding school fees to parents mobile number stored in a database through huawei modem
    Hey!

    For sending sms message through a database in vb. you should find an sms gateway or a sms host site.

    This is a source code to send sms with Ozeki NG SMS Gateway:

    Code:
    Imports System
    Imports System.IO
    Imports System.Net
    Imports System.Text
    Imports System.Web
    
    Public Class fMain
    
     Private Sub bSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bSend.Click
            Dim request As HttpWebRequest
            Dim response As HttpWebResponse = Nothing
            Dim url As String
            Dim username As String
            Dim password As String
            Dim host As String
            Dim originator As String
    
            Try
    
                host = "http://127.0.0.1:9501"
                originator = "06201234567"
                username = "admin"
                password = "abc123"
    
                url = host + "/api?action=sendmessage&" _
                         & "username=" & HttpUtility.UrlEncode(username) _
                         & "&password=" + HttpUtility.UrlEncode(password) _
                         & "&recipient=" + HttpUtility.UrlEncode(tbReceiver.Text) _
                         & "&messagetype=SMS:TEXT" _
                         & "&messagedata=" + HttpUtility.UrlEncode(tbMessage.Text) _
                         & "&originator=" + HttpUtility.UrlEncode(originator) _
                         & "&serviceprovider=GSMModem1" _
                         & "&responseformat=html"
    
                request = DirectCast(WebRequest.Create(url), HttpWebRequest)
    
                response = DirectCast(request.GetResponse(), HttpWebResponse)
    
                MessageBox.Show("Response: " & response.StatusDescription)
    
            Catch ex As Exception
            End Try
        End Sub
    End Class
    This is the website I find it, you can read a detailed guide about how to send sms in vb here:
    http://ozekisms.com/index.php?owpn=5...om-vb-sms-http

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

Featured