SmsGateWay24 Platform for client communication via SMS and WhatsApp

05.06.2024
tutorial

How to Send SMS Messages to Your Clients Using a Regular Phone

How to Send SMS Messages to Your Clients Using a Regular Phone

What This Guide Covers

This article explains how to use SmsGateWay24 to send SMS messages to your customers using an ordinary Android smartphone and a regular SIM card. This approach is ideal for small and medium businesses that need to send service SMS — confirmations, reminders, alerts — without paying the high per-message fees of commercial SMS providers.

Difficulty level: Intermediate. You should be comfortable with basic API calls or have a developer who can help with the integration.

Why Use Your Own Phone to Send SMS

Cost Advantage

Commercial SMS gateways charge between $0.01 and $0.10 per message depending on the country. With your own SIM card, you pay only your mobile operator's rate — often a fraction of that. For businesses sending thousands of messages monthly, this can save hundreds or thousands of dollars.

Better Local Delivery Rates

Messages sent from a local SIM card are treated as local traffic by mobile networks, resulting in higher delivery rates compared to messages routed through international SMS aggregators. Recipients are also less likely to flag local numbers as spam.

No Third-Party Dependency

Your SMS infrastructure is fully under your control. You are not affected by outages, pricing changes, or policy updates from third-party providers.

What You Need

  • An Android smartphone (Android 6.0 or later)
  • A SIM card with an SMS plan (prepaid or postpaid)
  • A SmsGateWay24 account
  • The SmsGateWay24 Android app installed and connected
  • Basic knowledge of making HTTP API requests

Step 1: Set Up the SmsGateWay24 App

Install the SmsGateWay24 app on your Android device. Log in with your account credentials. The device will appear as online in your dashboard. Make sure the device stays connected to the internet (Wi-Fi recommended for reliability).

Disable Android battery optimization for SmsGateWay24 to prevent the system from killing the background service. Go to Settings → Battery → App optimization → Find SmsGateWay24 → Set to "Don't optimize".

Step 2: Generate an API Token

In the SmsGateWay24 web dashboard, navigate to the Tokens section and create a new API token. Copy this token — you will use it to authenticate your API requests. Keep it secret, as it provides full access to send messages through your account.

Step 3: Send Your First SMS via API

You can send an SMS using a simple HTTP POST request. Here is an example using curl:

curl -X POST https://smsgateway24.com/api/v1/send   -H "Authorization: Bearer YOUR_API_TOKEN"   -H "Content-Type: application/json"   -d '{
    "phone": "+1234567890",
    "message": "Hello! Your order #1234 has been confirmed.",
    "device_id": "YOUR_DEVICE_ID"
  }'

Replace YOUR_API_TOKEN with your token and YOUR_DEVICE_ID with the ID shown in your device list. The response will include a message ID that you can use to track delivery.

Step 4: Send Bulk Messages to Multiple Customers

To send messages to a list of customers, iterate through your customer database and make an API call for each recipient. To avoid overwhelming the device, add a small delay between requests (100–500 milliseconds). The SmsGateWay24 queue will handle the messages in order.

Example in Python:

import requests, time

token = "YOUR_API_TOKEN"
device_id = "YOUR_DEVICE_ID"
customers = [
    {"phone": "+1234567890", "name": "Alice"},
    {"phone": "+0987654321", "name": "Bob"},
]

for customer in customers:
    payload = {
        "phone": customer["phone"],
        "message": f"Hello {customer['name']}, your appointment is tomorrow at 10am.",
        "device_id": device_id
    }
    r = requests.post(
        "https://smsgateway24.com/api/v1/send",
        headers={"Authorization": f"Bearer {token}"},
        json=payload
    )
    print(r.json())
    time.sleep(0.5)

Step 5: Track Delivery Status

After sending a message, SmsGateWay24 returns a message ID. You can check the delivery status by querying the messages endpoint, or configure a webhook to receive delivery status updates automatically on your server.

Setting Up a Delivery Webhook

  1. In your SmsGateWay24 account, go to the Webhooks section.
  2. Add your server's URL as the webhook endpoint for delivery reports.
  3. When a message is delivered (or fails), SmsGateWay24 will POST the status to your URL.

Best Practices for Sending SMS to Customers

  • Always obtain consent: Only send SMS to customers who have agreed to receive messages from you. In many countries, unsolicited commercial SMS is illegal.
  • Identify your business: Start every message with your business name so the recipient immediately knows who is contacting them.
  • Keep it short and clear: SMS has a 160-character limit. Get to the point in the first sentence.
  • Include a way to stop: Add "Reply STOP to unsubscribe" for marketing messages.
  • Send at appropriate times: Avoid sending messages before 9am or after 9pm in the recipient's local time zone.

Troubleshooting Sending Issues

Messages Queued but Not Sent

Check that your device is online in the dashboard. Verify that SIM card has credit and the operator allows SMS sending from the device.

Low Delivery Rates

Some mobile operators apply spam filters. Keep your message content professional and avoid excessive capitalization, exclamation marks, or suspicious URLs. Sending many identical messages quickly can also trigger spam filters — vary message text slightly or add a delay.

Categories

News
5