Moroccan Mobile Number Formatting Guide (+212)
Morocco uses the international calling code +212. To send an SMS to a Moroccan mobile subscriber, format the phone number in E.164 international format by prepending +212 and dropping the leading national zero. Valid mobile phone numbers in Morocco always begin with digit 6 or 7: • Maroc Telecom (IAM): +212 6XX XX XX XX or +212 7XX XX XX XX • Orange Morocco: +212 6XX XX XX XX or +212 7XX XX XX XX • Inwi: +212 6XX XX XX XX or +212 7XX XX XX XX Fixed landlines in Morocco begin with +212 5 and do not receive SMS. The EnvoiSMS platform automatically validates, cleans, and normalizes phone numbers in your API payloads, whether passed in local format (0612345678), international format (+212612345678), or without punctuation (212612345678).
- Country calling code: +212
- Valid mobile prefixes: +212 6... and +212 7...
- Automatic normalization of national and international formats
- Automatic filtering of unroutable landlines (+212 5)
Direct Local Carrier Routing & Handset Delivery Reports (DLR)
Many international aggregators route Moroccan traffic through roaming hops, leading to delayed OTP deliveries, dropped messages, or altered sender IDs. EnvoiSMS.ma routes directly into local carrier interconnects with Maroc Telecom, Orange, and Inwi. The platform includes automatic failover between routes and returns verified handset delivery reports (DLR) pushed to your systems in real time via HMAC-SHA256 signed webhooks.
- Direct local routes to Maroc Telecom (IAM), Orange, and Inwi
- Automatic failover between routes for continuous availability
- Instant delivery receipts (DLR) via HMAC-SHA256 signed webhooks
- Fast OTP and transactional delivery across all three networks
Alphanumeric Sender ID & Regulatory Compliance (ANRT & CNDP)
Sender identity helps ensure high open rates and recipient trust. EnvoiSMS supports custom alphanumeric Sender IDs (up to 11 characters, e.g. YOURBRAND) so recipients recognize your business immediately rather than receiving texts from anonymous numbers. Messaging adheres to Moroccan National Telecommunications Regulatory Agency (ANRT) guidelines and Law 09-08 regarding personal data protection overseen by the CNDP.
- Custom alphanumeric Sender ID up to 11 characters
- ANRT-compliant routing and sender validation support
- Compliance with Moroccan Law 09-08 on personal data protection (CNDP)
- Automatic STOP keyword opt-out handling for marketing broadcasts
Transparent Pay-As-You-Go Pricing in MAD, EUR, and USD
Pay only for what you send. With EnvoiSMS.ma, SMS credits never expire, and there are no recurring platform subscription fees or setup costs. Pricing starts at 0.48 MAD (~€0.045 / $0.049 USD) per standard 160-character SMS, with volume tiers down to 0.35 MAD (~€0.033 / $0.036 USD) for higher volume usage. Account balances can be funded with international credit cards (Visa, Mastercard, AMEX via Stripe) or bank wire transfer upon request.
- Pricing from 0.48 MAD (~€0.045) down to 0.35 MAD (~€0.033) per SMS
- No monthly subscription, no setup fees, no credit expiration
- Card payment via Stripe (Visa, Mastercard, AMEX) or bank transfer
- Downloadable VAT invoices for corporate accounting
Developer REST API Integration
Integrating SMS into your software takes only a few lines of code. Send an authenticated JSON POST request with your API token, sender name, recipient, and message text. Receive an immediate message ID and receive delivery callbacks via webhooks.
- Standard JSON/HTTP REST API with OpenAPI 3.0 specification
- Supports single SMS and batch sending up to 10,000 numbers per request
- Native Unicode support for Arabic, French, and English characters
- Live sandbox testing environment with starter credits