-
April 11th, 2014, 03:59 AM
#1
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
-
April 11th, 2014, 04:36 AM
#2
Re: sending sms to mobile number through huawei modem
And what is your question?
Victor Nijegorodov
-
April 11th, 2014, 04:52 AM
#3
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
-
April 11th, 2014, 05:43 AM
#4
Re: sending sms to mobile number through huawei modem
Did you try to google for it?
Victor Nijegorodov
-
April 14th, 2014, 02:07 AM
#5
Re: sending sms to mobile number through huawei modem
Originally Posted by Kamau
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|