Visit your regional website: Clickatell AU Regional Website Clickatell UK Regional Website Clickatell US Regional Website Clickatell ZA Regional Website
SA: +27 21 910 7700 | USA: +1 (800) 720-0802
 
 
Buy Now | Login | Contact Us
developer main image
 

SYSTEMS WARNING ALERT: The database D:\Program Files\... has reached its maximum size of 16383 MB. Event ID: 1174 - 03/07/2007 03:42pm

 
  • Developer Solutions

 

   

You are here: Developer Solutions | SMS Scripts |VB.Net

SMS Scripts - VB.Net

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 VB.Net:

Use the VB.Net 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:

Imports System.Net
Imports System.IO
Dim client As WebClient = New WebClient
' Add a user agent header in case the requested URI contains a query.
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR
1.0.3705;)")
client.QueryString.Add("user", "xxxx")
client.QueryString.Add("password", "xxxx")
client.QueryString.Add("api_id", "xxxx")
client.QueryString.Add("to", "xxxx")
client.QueryString.Add("text", "This is an example message")
Dim baseurl As String = "http://api.clickatell.com/http/sendmsg"
Dim data As Stream = client.OpenRead(baseurl)
Dim reader As StreamReader = New StreamReader(data)
Dim s As String = reader.ReadToEnd()
data.Close()
reader.Close()
Return

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: Thawte Clickatell: GSM Clickatell: BBB