Bulk SMS Services

How to Develop VB.net API to Send SMS

Imports System
Imports System.IOImports 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 StreamReader
sURL
=”http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=” & sUser &“&password=” & sPassword & “&msisdn=” & sNumber & “&sid=”
& sSenderID &
“&msg=” & sMessage & “&fl=0?
Dim sResponse As WebRequest
sResponse = WebRequest.Create(sURL)
Try
Dim objStream As Stream
objStream = sResponse.GetResponse.GetRe
sponseStream()
objReader = New StreamReader(objStream)
Response.Write(objReader.ReadToEnd())
objReader.Close()
Catch ex As Exception
ex.Message
End Try
End Sub
End Class

Note: For Transaction SMS Please add additional Parameter &gwid=2


Note: This is to update you that above code has been supplied to SMSINDIAHUB by clients. As such, accuracy is not guaranteed by SMSINDIAHUB.


Some of Our SMS Services Top Clients ;

smsindiahub clients