Our terms and conditions are subject to change. Please consult them Our terms and conditions change. More information Nuestras condiciones generales pueden cambiar. Más información I nostri termini e condizioni generali stanno per cambiare. Ulteriori informazioni Unsere Allgemeinen Geschäftsbedingungen ändern sich. Mehr Informationen

Integrate SMS messages into your HTML environment

Take advantage of an API SMS to integrate SMS directly into your HTML-based website, software or application. Our getting started guide for SMS HTML is here to help you integrate our API quickly and easily. Access advanced functionality to send and receive SMS with just a few lines of code.

sms php

The advantages of sending SMS in HTML

Program your campaigns SMS simply connect directly to our system on your way to the operators.

Technical support available

Our support and development teams are on hand to help you integrate our APIs and send SMS in HTML. You can reach them by e-mail, chat or telephone at any time.

Maximum safety

Our ISO 27001-certified SMS platform is hosted exclusively in France in a level 4 data center, and our SMS APIs with data encryption guarantee maximum security.

Universal API integration

Compatible with all programming languages with HTTP GET and POST requests, our SMS HTML API integrates quickly and easily with HTML, PHP, Java, .Net, Ruby, Windev, C#, C++ and more.

TO FIND OUT MORE
Subscription formulas for ultra-competitive rates
subscription form

STARTER GUIDE

How to send your first SMS HTML file?

Our SMS HTTP API lets you easily integrate all SMS send and receive requests into your HTML programming directly in PHP.

Deploy the sending of your first SMS with this sample source code ↓


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 has now been sent!

We invite you to consult the full documentation to integrate all the advanced functionalities available via our Gateway SMS (sending and receiving SMS in bulk or individually, notification of SMS reports received, sender personalization, automatic unsubscribe/STOP management SMS, integration of variables, etc.).

Why choose our APIs for your SMS HTML projects?

An API SMS used by more than 10,000 customers (including Tripadvisor, Doctolib and SoCloz) who have implemented the sending and receiving of messages via our services, and who benefit from numerous advantages and services:

Direct operator connection routing

As a French telecom operator approved by ARCEP, smsmode© allows you to benefit from the most reliable routes, competitive rates and maximum deliverability (+90% reception rate within one minute of dispatch).

RGPD commitment

smsmode© is ISO 27001 and 27701 certified, and is committed to the confidentiality of personal data passing through its services. Reduction and encryption of stored user data, data processing mapping...

Intelligent traffic prioritization

smsmode© prioritizes notification and OTP traffic over marketing traffic. An automatic failover solution to backup routes is also in place in the event of a drop in performance.

Support for rapid API integration

Our experts can help you manage our API. Our responsive French and English-speaking technical support team is available every day of the week, from 9am to 12pm and from 2pm to 5:30pm, by e-mail, chat, ticketing or telephone.

Solution approved by 10,000+ customers

Take advantage of our expertise in routing projects for SMS in bulk or by unit. smsmode© has been supporting 10,000+ customers since 2004, with a dispatch volume reaching 100 million SMS per month.

Full send and receive functionality

Our solutions SMS APIs give you access to a wide range of functions and options: database segmentation, SMS reception, variable addition, statistics, SMS status retrieval, sender personalization, etc.

REPORT
Digital security at smsmode© ?
Discover our data protection and privacy measures designed with RGPD compliance in mind.
safety report smsmode

Create your free account

Try out our SMS platform and benefit from 20 free test credits, with no obligation.

Need more info?
We look forward to hearing from you.