The days when you could buy a “file of 100,000 Moroccan numbers” on the internet to send a wild promotion are over. In Morocco, the mobile telephone number is considered by law as “Personal Data”. As such, its processing (collection, storage and use for sending SMS) is strictly regulated.
The supervisory authority is the CNDP (National Commission for the Control of the Protection of Personal Data), which ensures the application of law 09-08.
For SMEs and developers who integrate an SMS API, ignorance of this law exposes the company to direct complaints from consumers and heavy sanctions. Here is a practical popularization of this legal framework, often perceived as opaque.
The Moroccan legal framework in one page (Law 09-08)
The Moroccan law relating to the protection of individuals with regard to the processing of personal data (Law 09-08) is based on a founding principle for direct marketing (of which SMS is part): Prior consent (Opt-in).
You do not have the right to send a commercial message to a natural person (B2C) if they have not explicitly given their prior consent to be contacted via this channel. In addition, any processing of personal data (the creation of your customer database) must be the subject of a prior declaration to the CNDP.
What is mandatory before sending a campaign
Before even uploading your CSV file to the sending platform (EnvoiSMS), make sure to check these three boxes:
- Proof of Consent: How did you obtain this number? If the customer has completed a form on your e-commerce site, there must be a checkbox (not pre-checked) saying "I agree to receive offers by SMS".
- Clear Identification (Sender ID): The recipient must immediately know who is contacting them. The use of a validated alphanumeric Sender ID (the name of your brand) is strongly recommended. Impersonating a public institution or hiding your identity is illegal.
- The Right of Opposition (The famous "STOP SMS"): Each promotional SMS must include, at the end of the text, a simple and free way to oppose future sendings (eg:
STOP to 06XX). And above all, you must respect this choice and blacklist the number in your CRM or via a webhook.
What is explicitly prohibited (Common pitfalls)
La CNDP sanctionne régulièrement les abus. Voici les pratiques à bannir absolument de votre stratégie :
- L'achat, la location ou l'échange de bases de données "Opt-out" : Acheter un CD-ROM ou un fichier Excel de numéros "CSP+ Casablanca" sans que ces personnes ne vous connaissent est la définition même du Spam.
- Le contournement par WhatsApp : Certains pensent qu'utiliser WhatsApp Business échappe à la règle du SMS. C'est faux. La loi 09-08 couvre "tous les moyens de communication électronique".
- L'envoi à des horaires déraisonnables : Bien que la loi marocaine ne fixe pas d'horaires stricts à la minute près comme en France (Loi LCEN), le harcèlement nocturne ou le dimanche (sauf alerte de sécurité urgente ou OTP) est considéré comme une nuisance pouvant déclencher des plaintes à l'ANRT et à la CNDP.
La Checklist de Conformité Minimale (Pour votre PME)
Vous êtes une agence de voyage, un garagiste ou un e-commerçant au Maroc ? Appliquez cette checklist avant votre prochaine campagne :
- [ ] J'ai récolté moi-même les numéros (clients existants ou prospects ayant rempli un formulaire).
- [ ] J'ai déclaré mon fichier clients à la CNDP.
- [ ] Le texte de mon SMS indique clairement le nom de mon entreprise.
- [ ] Mon message se termine par "STOP au 06..." (ou un lien de désabonnement).
- [ ] J'utilise un fournisseur d'API SMS hébergé au Maroc (Data Residency) qui garantit la non-revente de ma base de données.
Le respect de la CNDP n'est pas qu'une contrainte légale, c'est une preuve de respect envers vos clients. Une base saine de 5 000 clients consentants génèrera toujours plus de Retour sur Investissement (ROI) qu'une base volée de 100 000 numéros irrités.
Frequently asked questions
What is the routing latency on the IAM, Inwi and Orange networks?
On our local routes to Maroc Telecom (IAM), Orange and inwi, the median time to carrier confirmation is 11–17 s (measured in October 2026).
How does the platform manage the format of Moroccan numbers?
EnvoiSMS automatically normalizes the numbers entered (06..., 07..., 00212...) to the E.164 standard (+212) to avoid any delivery failure.