iSMS Philippines API Integration

Send SMS directly from your website or application with our comprehensive API. Integrate SMS capabilities without compromising features.

API Endpoints & Parameters

Comprehensive documentation for integrating SMS capabilities into your applications.

📤 Send SMS to Single Number

Send SMS to a single Philippine mobile number

https://www.isms.com.my/isms_send.php?
un=USERNAME&
pwd=PASSWORD&
dstno=639171234567&
msg=Hello%20World&
type=1&
sendid=639171234567

👥 Send SMS to Multiple Numbers

Send SMS to multiple recipients (max 300 per request)

https://www.isms.com.my/isms_send.php?
un=USERNAME&
pwd=PASSWORD&
dstno=639171234567;639181234567&
msg=Hello%20World&
type=1&
sendid=639171234567

💼 Send SMS by Group

Send SMS to an entire contact group

https://www.isms.com.my/api_send_sms_by_group.php?
un=USERNAME&
pwd=PASSWORD&
groupid=12345&
msg=Hello%20World&
type=1&
sendid=639171234567

API Parameters

Parameter Details Example Required
un iSMS Philippines username AdminABC Yes
pwd iSMS Philippines password pw123 Yes
dstno Philippine mobile number (63 format) 639171234567 Yes
msg Message body (MAX: 900 characters) Great deals in Manila! Yes
type 1 = ASCII, 2 = Unicode 1 Yes
sendid Sender ID (max 11 characters) 639171234567 Optional
agreedterm Accept terms and conditions YES Required

Code Samples

Integration examples for popular programming languages

PHP
Java
C#
Python
JavaScript
VB.NET

Send SMS with PHP

// Send SMS using PHP cURL
function sendSMS($username, $password, $phone, $message) {
  $url = "https://www.isms.com.my/isms_send.php";
  $data = [
    'un' => $username,
    'pwd' => $password,
    'dstno' => $phone,
    'msg' => urlencode($message),
    'type' => 1,
    'sendid' => substr($phone, 0, 11),
    'agreedterm' => 'YES'
  ];

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $response = curl_exec($ch);
  curl_close($ch);
  return $response;
}

// Usage for Philippine number
$result = sendSMS('your_username', 'your_password', '639171234567', 'Hello from PHP!');

Send SMS with Java

import java.io.*;
import java.net.*;

public class SMSSender {
  public static String sendSMS(String username, String password,
                      String phone, String message) {
    try {
      String url = "https://www.isms.com.my/isms_send.php";
      String params = "un=" + username +
                    "&pwd=" + password +
                    "&dstno=" + phone +
                    "&msg=" + URLEncoder.encode(message, "UTF-8") +
                    "&type=1&agreedterm=YES";

      URL obj = new URL(url + "?" + params);
      HttpURLConnection con = (HttpURLConnection) obj.openConnection();
      con.setRequestMethod("GET");

      BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
      String inputLine;
      StringBuilder response = new StringBuilder();

      while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
      }
      in.close();
      return response.toString();
    } catch (Exception e) {
      return "Error: " + e.getMessage();
    }
  }
}

Send SMS with C#

using System;
using System.Net;
using System.Web;

public class SMSService
{
  public string SendSMS(string username, string password,
                    string phone, string message)
  {
    try
    {
      string url = "https://www.isms.com.my/isms_send.php";
      string parameters = $"?un={username}" +
                        $"&pwd={password}" +
                        $"&dstno={phone}" +
                        $"&msg={HttpUtility.UrlEncode(message)}" +
                        "&type=1&agreedterm=YES";

      WebClient client = new WebClient();
      string response = client.DownloadString(url + parameters);
      return response;
    }
    catch (WebException ex)
    {
      return $"Error: {ex.Message}";
    }
  }
}

Send SMS with Python

import urllib.parse
import urllib.request

def send_sms(username, password, phone, message):
  url = "https://www.isms.com.my/isms_send.php"
  params = {
    'un': username,
    'pwd': password,
    'dstno': phone,
    'msg': message,
    'type': '1',
    'agreedterm': 'YES'
  }

  try:
    # Encode parameters
    data = urllib.parse.urlencode(params)
    data = data.encode('utf-8')

    # Create request
    req = urllib.request.Request(url, data)
    response = urllib.request.urlopen(req)
    return response.read().decode('utf-8')

  except Exception as e:
    return f"Error: {str(e)}"

# Usage for Philippine number
result = send_sms('your_username', 'your_password', '639171234567', 'Hello from Python!')
print(result)

Send SMS with JavaScript (Node.js)

const https = require('https');
const querystring = require('querystring');

function sendSMS(username, password, phone, message) {
  return new Promise((resolve, reject) => {
    const params = {
      un: username,
      pwd: password,
      dstno: phone,
      msg: message,
      type: '1',
      agreedterm: 'YES'
    };

    const query = querystring.stringify(params);
    const url = `https://www.isms.com.my/isms_send.php?${query}`;

    https.get(url, (res) => {
      let data = '';

      res.on('data', (chunk) => {
        data += chunk;
      });

      res.on('end', () => {
        resolve(data);
      });

    }).on('error', (err) => {
      reject(`Error: ${err.message}`);
    });
  });
}

// Usage for Philippine number
sendSMS('your_username', 'your_password', '639171234567', 'Hello from Node.js!')
  .then(response => console.log(response))
  .catch(error => console.error(error));

// Browser JavaScript (using fetch API)
async function sendSMSBrowser(username, password, phone, message) {
  const params = new URLSearchParams({
    un: username,
    pwd: password,
    dstno: phone,
    msg: message,
    type: '1',
    agreedterm: 'YES'
  });

  try {
    const response = await fetch(`https://www.isms.com.my/isms_send.php?${params}`);
    const result = await response.text();
    return result;
  } catch (error) {
    return `Error: ${error.message}`;
  }
}

Send SMS with VB.NET

Imports System
Imports System.Net
Imports System.Web

Public Class SMSService
  Public Function SendSMS(ByVal username As String,
                          ByVal password As String,
                          ByVal phone As String,
                          ByVal message As String) As String

    Try
      Dim url As String = "https://www.isms.com.my/isms_send.php"
      Dim parameters As String = $"?un={username}" &
                                  $"&pwd={password}" &
                                  $"&dstno={phone}" &
                                  $"&msg={HttpUtility.UrlEncode(message)}" &
                                  "&type=1&agreedterm=YES"

      Dim client As New WebClient()
      Dim response As String = client.DownloadString(url & parameters)
      Return response

    Catch ex As WebException
      Return $"Error: {ex.Message}"
    End Try
  End Function
End Class

' Usage for Philippine number
Dim smsService As New SMSService()
Dim result As String = smsService.SendSMS("your_username", "your_password",
                                      "639171234567",
                                      "Hello from VB.NET!")
Console.WriteLine(result)
Note: All code samples include Philippine mobile number format (63 prefix). Remember to URL encode your message content and handle authentication securely.

API Response Codes

Understand the responses from our SMS API

2000

SUCCESS

Message sent successfully

-1001

AUTHENTICATION FAILED

Username or password incorrect

-1004

INSUFFICIENT CREDITS

Account balance is insufficient

-1006

INVALID BODY LENGTH

Message exceeds 900 characters

Send SMS via Email

Send SMS directly from your email client without API integration

Core Benefits

Instant Updates

Notify customers immediately about appointment changes, sales, or important information

📧

Email Integration

Send SMS from any email client without direct internet connection requirements

🔒

Secure SSL

All API communications protected with SSL encryption technology

🌍

Philippine Focus

Optimized for Philippine mobile networks and business requirements

Ready to Integrate SMS into Your Application?

Start sending SMS directly from your website or application with our reliable API service.