HomeAPI & DevSend SMS with VB.net

Send SMS with 🔷 VB.net

Send SMS from your VB.NET application using HttpClient — modern async pattern, compatible with .NET 5+ and .NET Framework 4.6+.

VB.net · HttpClient HTTPS POST v2.0
ℹ️
Before using the API, register a free iSMS account and purchase SMS credits. See the full SMS API docs for all parameters and error codes.
API Endpoints
HTTPS Endpoints — use all 3 for high availability
// Primary
https://smtpapi.vocotext.com/isms_send_all_id.php

// Mirror 2
https://smtpapi2.vocotext.com/isms_send_all_id.php

// Mirror 3
https://www.isms.com.my/isms_send_all_id.php
Send SMS — VB.net
VB.net · HttpClient PostAsync
Imports System.Net.Http
Imports System.Collections.Generic

Module IsmsSender

    ' Reuse HttpClient — do not create per request
    Private ReadOnly _client As New HttpClient()

    Async Function SendSmsAsync(mobile As String, message As String) As Task(Of String)

        Dim payload = New Dictionary(Of String, String) From {
            {"un",         "your_username"},   ' iSMS username
            {"pwd",        "your_password"},   ' iSMS password
            {"dstno",      mobile},            ' e.g. "601X-XXXXXXX"
            {"msg",        message},
            {"type",       "1"},               ' 1 = ASCII, 2 = Unicode
            {"agreedterm", "YES"},
            {"sendid",     "MyBrand"}          ' Optional, max 11 chars
        }

        Dim content  = New FormUrlEncodedContent(payload)
        Dim response = Await _client.PostAsync(
            "https://smtpapi.vocotext.com/isms_send_all_id.php", content)

        Return Await response.Content.ReadAsStringAsync()
    End Function

    Sub Main()
        Dim result = SendSmsAsync("601X-XXXXXXX", "Hello from iSMS!").Result

        If result.StartsWith("2000") Then
            Dim trxId = result.Split(":"c)(1)
            Console.WriteLine("SMS sent! Transaction ID: " & trxId)
        Else
            Console.WriteLine("Failed: " & result)
        End If
    End Sub

End Module
✅ Success
2000 = SUCCESS:1143007207
// Save the transaction ID for delivery tracking
❌ Error
-1001 = AUTHENTICATION FAILED
-1003 = IP NOT ALLOWED
-1004 = INSUFFICIENT CREDITS
-1008 = MISSING PARAMETER
-1013 = INVALID TERM AGREEMENT
⚠️
Delivery Status Note (Malaysia): A 2000 response confirms submission to Telco SMSC only — not delivery to handset. For confirmed Sent → Received → Read tracking, consider WhatsApp Business API.

Ready to Integrate?

Register free, get your API credentials, and start sending in minutes.

📱 SMS Coverage — All Countries Worldwide

A B C D E F G H I J K L M N O P Q R S T U V Y Z