Send SMS with VB.Net:
Use the VB.Net code below to send SMS via Clickatell's SMS Gateway, Developers’ Central. Simply register for an HTTP API account, and you will automatically receive 10 FREE SMS credits to try our service.
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("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()
Please note that some of the above code has been supplied to Clickatell by clients. As such, accuracy is not guaranteed by Clickatell.