SMS delivery: What rate should you expect? How to optimize it. read the article SMS delivery: What rate should you expect? How to optimize it.read the article Entrega de SMS: ¿Qué tasa debe esperar? Cómo optimizarlo. leer el artículo Consegna degli SMS: quale tasso di consegna si deve prevedere? Come ottimizzarlo.per saperne di più SMS-Zustellung: Welche Rate ist zu erwarten? Wie man sie optimiert.mehr erfahren

focus smsmode©

focus on
HTML SMS

How do I send HTML SMS messages? smsmode© provides you with an intuitive SMS API that enables you to integrate professional SMS messaging directly into your HTML web page, website, software or application, with just a few lines of code.

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.

Discover the API documentation

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

Our technical and development teams are available to help you integrate our APIs and send HTML SMS. Feel free to contact them by email, chat or phone and ask 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 data encryption guarantee maximum security for high quality mailings.

High Availability dedicated InfrastructureQuick integration

Compatible with all programming languages with HTTP GET and POST requests, our SMS HTML API can also be easily and quickly integrated into PHP, Java, .Net, Ruby, Windev, C#, C++, etc.

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.).

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:

1Directly connected routing for 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.

2An 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.

3Prioritised 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 rapid API integration
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.

6Full sending and receiving functionality
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 HTML SMS routing with sMsmode
services with 20 free sendings on 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