Send SMS with ASP

ASP SMS messaging is one of the services we offer. Here we'll show you how to use our SMS gateway in ASP. Take the SMS ASP 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 ASP :

'Set the values same as you use in your account
sUser = "user"
spwd ="password"
'Set the mobile number on which you want to send SMS
sNumber = "919893123456"
'Your Message
smsg = "Test SMS from SMSGATEWAYHUB"
' You approved sender id
ssid = "WebSMS"
Dim objXmlHttpMain , sURL
sURL=""& sUser &"&pwd=" & sPassword & "&to=" & sNumber & "&sid="& sSenderID & "&msg=" & sMessage & "&fl=0"
Set objXmlHttpMain = Server.CreateObject("Msxml2.ServerXMLHTTP")
on error resume next "GET",sURL, False
objXmlHttpMain.setRequestHeader "Content-Type", "text/urlencoded"
'Store response
response.Write (objXmlHttpMain.responseText)

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