VB .net SMS Script, bulk sms script, sms script
Today Bulksms Offer

Send SMS with VB .net SMS Script

VB .net SMS messaging is one of the services we offer. Here we'll show you how to use our SMS gateway in VB .net. Take the SMS VB .net script code below to send SMS via Developers' Central. Simply register for an account, and you will automatically receive 10 FREE SMS credits to try our service.


Code to send SMS in VB .net:

Imports System
Imports System.IO
Imports System.Net
Imports System.Text
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim sURL As String
Dim objReader As StreamReadersURL="http://login.smsgatewayhub.com/api/mt/SendSMS?APIKey=yourapicode&senderid=WEBSMS&channel=2&DCS=0&flashsms=0&number=91989xxxxxxx&text=test message&route=1"

Dim sResponse As WebRequest
sResponse = WebRequest.Create(sURL)

Try
Dim objStream As Stream
objStream = sResponse.GetResponse.GetResponseStream()
objReader = New StreamReader(objStream)
Response.Write(objReader.ReadToEnd())
objReader.Close()
Catch ex As Exception
ex.Message
End Try
End Sub
End Class

Please note that some of the above code has been supplied to SMSGATEWAYHUB by clients. As such, accuracy is not guaranteed by SMSGATEWAYHUB.