HomeAPI & DevSend SMS with ASP (Classic)

Send SMS with 🔩 ASP (Classic)

Send SMS from Classic ASP using MSXML2.ServerXMLHTTP — built-in COM object, no extra library needed.

ASP · VBScript HTTPS GET 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 — ASP Classic (VBScript)
ASP Classic · MSXML2.ServerXMLHTTP GET
%<
Dim un, pwd, dstno, msg, sType, sendid, apiUrl, url, xmlhttp, result

un      = "your_username"        ' iSMS account username
pwd     = "your_password"        ' iSMS account password
dstno   = "601X-XXXXXXX"          ' Recipient — full international format
msg     = Server.URLEncode("Hello from iSMS!")
sType   = "1"                    ' 1 = ASCII, 2 = Unicode
sendid  = "MyBrand"             ' Optional sender ID (max 11 chars)
apiUrl  = "https://smtpapi.vocotext.com/isms_send_all_id.php"

url = apiUrl & "?un=" & un & "&pwd=" & pwd _
          & "&dstno=" & dstno & "&msg=" & msg _
          & "&type=" & sType & "&agreedterm=YES" _
          & "&sendid=" & sendid

Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP.6.0")
xmlhttp.Open "GET", url, False
xmlhttp.setOption 2, 13056   ' Enable SSL/TLS
xmlhttp.Send

result = xmlhttp.responseText

If InStr(result, "2000") > 0 Then
    Response.Write "SMS sent! Response: " & result
Else
    Response.Write "Failed: " & result
End If

Set xmlhttp = Nothing
%>
✅ 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