Focus on

The HTML SMS

How to send HTML SMS? smsmode© puts at your disposal an intuitive SMS API that allows you in some line of codes to integrate the sending of professional SMS directly from your Web page, website, software or application developed in HTML.

A guide to starting the HTML SMS is at your disposal. Fast, simple and easy to integrate, using our SMS Gateway will allow you to access advanced features to send and receive SMS, program an SMS campaign, and connect directly to our systems en route Direct operators.

LEARN MORE

THE ROUTING OF HTML SMS IN 3 POINTS...
A support team availableA team available and listening

Our technical teams and developers are listening to you to help you integrate our APIs and send HTML SMS. Do not hesitate to contact them by email, chat or telephone and ask them your questions.

Maximum security for automated SMS sentMaximum security

With an SMS platform hosted exclusively in France in a Level 4 data center, our SMS APIs with encryption and data encryption guarantee you maximum security for highly qualitative shipments .

High Availability dedicated InfrastructureQuick integration

Compatible with all the programming languages to HTTP GET and POST requests, our SMS HTML API also integrates easily and quickly into a PHP, Java, .net, Ruby, Windev, C#, C++, etc. development.

Types of messages sent with HTML integration

QUICK START GUIDE

How to send its first HTML SMS?

Our SMS HTTP API allows you to easily integrate all requests for sending and receiving SMS in your HTML programming directly in PHP.

The PHP source code below, ready to use, allows you to send your first SMS :

const ERROR_API = "Error during API call\n";
const ERROR_FILE = "The specified file does not exist\n";
const URL = "https://api.smsmode.com/http/1.6/";
const PATH_SEND_SMS = "sendSMS.do";
const PATH_SEND_SMS_BATCH = "sendSMSBatch.do";

/**
* Function parameters:
*
*    - accessToken (required)
*    - message (required)
*    - destinataires (required): Receivers separated by a comma
*    - emetteur (optional): Allows to deal with the sms sender
*    - optionStop (optional): Deal with the STOP sms when marketing send (cf. API HTTP documentation)
*    - batchFilePath (required for batch mode): The path of CSV file for sms in Batch Mode
*/

class ExempleClientHttpApi 
{
 // send SMS with GET method
 public function sendSmsGet($accessToken, $message, $destinataires, $emetteur, $optionStop) 
 {
     $message = iconv("UTF-8", "ISO-8859-15", $message);
     $fields_string = '?accessToken='.$accessToken.'&message='.urlencode($message).'&numero='.$destinataires.'&emetteur='.$emetteur.'&stop='.$optionStop;
 
     $ch = curl_init();
     curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
     curl_setopt($ch,CURLOPT_URL, URL.PATH_SEND_SMS.$fields_string);
     $result = curl_exec($ch);
     curl_close($ch);
     if (!$result) {
         return ERROR_API;
     }
     return $result;
 }

 // send SMS with POST method
 public function sendSmsPost($accessToken, $message, $destinataires, $emetteur, $optionStop) 
 {
     $message = iconv("UTF-8", "ISO-8859-15", $message);
     $fields_string = 'accessToken='.$accessToken.'&message='.urlencode($message).'&numero='.$destinataires.'&emetteur='.$emetteur.'&stop='.$optionStop;
 
     $ch = curl_init();
     curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
     curl_setopt($ch,CURLOPT_URL, URL.PATH_SEND_SMS);
     curl_setopt($ch,CURLOPT_POST, 1);
     curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
     $result = curl_exec($ch);
     curl_close($ch);
     if (!$result) {
         return ERROR_API;
     }
     return $result;
 }

 // send SMS with POST method (Batch)
 public function sendSmsBatch($accessToken, $batchFilePath, $optionStop) 
 {
     if (!file_exists($batchFilePath)) {
         return ERROR_FILE;
     }

     $fields_string = '?accessToken='.$accessToken.'&stop='.$optionStop;
     $cfile = new CurlFile($batchFilePath, 'text/csv');
     $data = array('data-binary' => $cfile);

     $ch = curl_init();
     curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
     curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'content-type: multipart/form-data'));
     curl_setopt($ch,CURLOPT_URL, URL.PATH_SEND_SMS_BATCH.$fields_string);
     curl_setopt($ch,CURLOPT_POST, 1);
     curl_setopt($ch,CURLOPT_POSTFIELDS, $data);
     $result = curl_exec($ch);
     curl_close($ch);
     if (!$result) {
         return ERROR_API;
     }
     return $result;
 }
}

Your first SMS is now sent!

We invite you to consult the complete documentation to integrate all the advanced features available via our SMS Gateway (sending and receiving SMS in bulk or by unit, notification of the reports of the received SMS, personalization of The issuer, managing unsubscribe/STOP SMS, integrating mail merge variables, etc.).

HTTP API documentation

DOCUMENTATION

All the requests of our API to integrate the sending of SMS

Downloadable free of charge, the description of all the features included in our HTTP API is simple, detailed and documented by code examples for quick integration and step by step.

I DOWNLOAD THE TECHNICAL DOCUMENTATION OF THE HTTP API FREE OF CHARGE

Why choose our APIs for your HTML SMS?

Key actor in sending and receiving SMS for 15 years, smsmode© specializes in SMS Notification Routing and SMS OTP, just as is leading the sending of medical SMS. Our SMS API is approved by more than 10 000 clients (including Tripadvisor, Doctolib or SoCloz) who have implemented the delivery of text messages through our services and benefit from many benefits and services, including:

1A direct connection routing operators
A Telecom operator, smsmode© offers direct routing to all  international operators. You receive maximum deliverability with a reception rate of 97% within one minute of sending.

2A GDPR Commitment
In accordance with its obligations related to the GDPR, smsmode© undertakes the confidentiality of personal data transiting through its services, the reduction of Stored user data, the securing of its services or the mapping of the processing of Policy.

3Prioritized and intelligent traffic
smsmode© applies a prioritization of notification and OTP traffic on marketing traffic. Likewise, an automatic failover solution to emergency routes is also set up in the event of a drop in performance.

4Support for quick integration of the API
Benefit from the help of our experts for the implementation of our API. Our reactive technical support, French and English speaking, is at your disposal every day of the week from 9am to 12pm and from 2pm to 5.30pm by email, chat, via a ticketing support system or by phone.

5Approved Customer Expertise
With nearly 10 000 customers and startups accompanied since 2004 and a volume of sending up to 40 million of SMS per month, our company has a strong expertise in the setting up and the accompaniment of your projects of SMS routing by mass or Unit.

6Complete send and receive features
Our SMS API solutions give you access to a wide range of features, options and Possibilities: Address Book management, received SMS retrieval, automatic account reporting, SMS status retrieval, etc.

Tools and services to send HTML SMS

20 SMS HTML Offered
Try now the SMS HTML routing via the smsmode© services
With 20 mailings offered to account creation.
No commitment. No credit card required.

TRY SENDING HTML SMS FOR FREE

Gateway SMS Provider

Our team will accompany you

Our developers and technicians are at your disposal to answer your questions and to advise you on your projects of integration of sending of HTML SMS. Feel free to contact one of our experts, our goal being the success of your mobile marketing project.

CONTACT US