Main
🏠 Home ℹ️ About Us
WhatsApp
💬 WhatsApp Business API (WABA) 🔐 OTP & TAC via WhatsApp 🤖 WhatsApp + AI Chatbot 🔵 Blue Tick Verification
SMS
📱 One-Way Bulk SMS 🔒 Two-Factor Authentication (2FA) 🌏 Global SMS Coverage ⚡ SMS API
Email & API
✉️ Email Service Overview 🔌 Email SMTP API 🛠 REST API Reference
Queue System
🏢 Queue System Overview 💬 WhatsApp QMS ☁️ Cloud QMS ⚡ Cloud + WhatsApp QMS 📖 Cloud & WhatsApp QMS Guide 🎯 Request Free Demo
Pricing
💰 Full SGD Rate List 🛒 Buy SMS Credits
Support
📩 Contact Us ❓ FAQ 📖 End-User Guide ⚠️ Service Advisory
📝 Register Free
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.bulksms.com.sg/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 TESGD 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.

💬