Visit your regional website: Clickatell Ireland Regional Website Clickatell Australia Regional Website Clickatell United Kingdom Regional Website Clickatell United States Regional Website Clickatell India Regional Website Clickatell South Africa Regional Website
  • Developer Solutions

 

   

You are here: Developer Solutions | SMS Scripts |VB Script

SMS Scripts - VBScript

Clickatell provides you with some ready-made scripts that are available to help you connect to our gateway through your chosen programming language. These scripts all work with the HTTP API. Sign up now and get 10 free credits to trial the service.

Send SMS with VBScript:

Use the VBScript code below to send SMS via the Clickatell SMS Gateway. Simply sign up for an HTTP API account, and you will automatically receive 10 free SMS credits to trial the service.

Code Sample:

Dim sUrl,
Dim sAPI_ID, sPassword, sUsername, sMobileNo, sText
Dim oXMLHTTP, sPostData, sResult
sUrl = "http://api.clickatell.com/http/sendmsg"
sAPI_ID = "xxxx"
sPassword = "xxxx"
sUsername = "xxxx"
sMobileNo = "xxxx"
sText = "This is an example message"
sPostData = "api_id=" & sAPI_ID
sPostData = sPostData & "&user=" & sUsername
sPostData = sPostData & "&password=" & sPassword
sPostData = sPostData & "&to=" & sMobileNo
sPostData = sPostData & "&text=" & sText
Set oXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
oXMLHTTP.Open "POST", sUrl, false
oXMLHTTP.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
oXMLHTTP.Send sPostData
sResult = oXMLHTTP.responseText
Set oXMLHTTP = nothing
Response.Write sResult

SMS Gateway sign up image

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

 

       
Payment Options   Associations and Security  
Clickatell: Payment methods


Clickatell: MMA logo Clickatell: GSM Clickatell: Thawte Click to verify BBB accreditation and to see a BBB report.