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.more information Entrega de SMS: ¿Qué tasa debe esperar? How to optimize it. más información Consegna degli SMS: quale tasso di consegna si deve prevedere? How to optimize it.per saperne di più SMS-Zustellung: Welche Rate ist zu erwarten? Wie man sie optimiert.mehr erfahren

focus smsmode©

focus on
SMS PHP

You want to send short messages instantly to mobiles and directly in connection with your application, website, software, CRM, etc.? Nothing simpler with our HTTP API that allows you to interface the sending of SMS directly into your development in PHP.

Thanks to the various calls and requests, our WebService allows you to use all the potential of sending SMS. Follow our quick Start Guide...

I discover the API Documentation

SENDING PHP SMS IN DETAIL
Integrating a free SMS gatewaySimple and quick API integration

Compatible with all programming languages with HTTP GET and POST requests, the complete and free documentation allows a simple, fast and step by step integration.

Maximum security for automated SMS sentMaximum security

Hosted in France, in a level 4 data-center, our SMS APIs guarantee maximum security, thanks in particular to the HTTPS protocol.

High Availability dedicated InfrastructureContinuous service

Our dedicated, high-availability infrastructure is continuously monitored 24/7/365 with fail-safecapability.

Support Team at your disposalTechnical support at your disposal

Our dedicated team of developers is available to help you integrate our SMS APIs or answer your questions.

Examples of messages that can be sent through a PHP application

QUICK START GUIDE

How to send your first PHP SMS?

The PHP library built into our HTTP API allows easy, easy and efficient integration of SMS sending to a website, application, software solution, etc. Compatible with the most common programming languages (PHP, Java, ASP, C++, Ruby, WINDEV, Curl, etc.), this SMS gateway to our routing services is open source and downloadable free of charge.

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;
 }
}

The documentation and SDK provided with our SMS API will guide you step by step in implementing all the features related to sending SMS: bulk or unit SMS sending, contact management, consulting the credits available on your Customer account, scheduling of the date and time of sending, consultation of the status of receipt, direct mail, etc.

In this way, many possibilities for using the SMS are offered: SMS notification, mobile marketing campaign to cell phones, sending alerts and reminder, creating automated response machines, etc.

CONSULT THE API HTTP DOCUMENTATION

5 Reasons to choose our professional SMS platform!

With nearly 15 years of expertise in SMS Marketing, our HTTP API has been approved by nearly 10 000 customers who have developed innovative SMS communication services directly in their applications. Among these are study cases, Doctolib and confirmation of medical appointments, geotracer and alert sending on connected objects, Tripadvisor and booking confirmation by SMS, etc.

They chose us and made our API a reference for the implementation of sending PHP SMS, because our service offers you:

1Premium routing in direct route operator
As a telecom operator, our traffic is exclusively routed directly to French and global operators. This excludes any use of roaming or low-cost solutions. It is a real guarantee of quality and maximum deliverability.

2A commitment to service quality
Our expertise as a specialist of the OTP (one Time password or strong authentication via SMS single password), guarantees you a real-time control of the performance of the deliveries and the delivery times of the SMS that are made via our services. Also, we commit to a reception rate on French telephony operators, within one minute after sending, of 87%.

3A flexible and non-binding solution
With access to our self-service services, the installation of our SMS sending API service is free of charge and without subscription. Only the rate of SMS sent will be charged to you depending on the type of SMS and its destination.

4Proximity with responsive technical support
For all your questions, our technical support is available every day of the week from 9am to 12pm and from 2pm to 5.30pm. With a French (and English-speaking) team based in France, we offer you a real proximity and reactivity for the success of your project.

5Confidentiality of customer data and compliance with legal obligations
In compliance with all the French legal obligations in the field of mobile marketing, we are committed to total protection of customer data and automatic management of unsubscribes (or STOP SMS).

Tools and services to send PHP SMS

Gateway SMS Provider

Our team advises you...

Our commercial and technical teams are at your disposal via email, phone or chat to answer all your questions about the implementation of sending PHP SMS. As an SMS service provider for almost 15 years, you will benefit from our advice on setting up and our expertise in SMS mailings.

CONTACT US