WHMCS SMS Center module: send WHMCS notifications to your clients by SMS

API & DocumentationWHMCS Modules·· 108 views· 3 min read

This WHMCS addon sends SMS to your clients and your team through the SMS Center API, when it matters. The messages go out from your MozOut account.

What it does

To clients: order paid, invoice created, invoice reminder, invoice overdue, service activated, suspended or unsuspended, domain registered, domain expiring (30, 7 and 1 days before, your choice) and ticket reply. To your team: new order and new ticket.

Each event is switched on and off on its own and has a template in Portuguese and one in English. Clients get it in the language of their account.

What you need

WHMCS 8, PHP 7.4 or 8.x with cURL, and the WHMCS cron running (it handles the expiring domains). Plus an API key, created in the API Center of My MozOut.

Installing, step by step

1 Download mozout_sms_center.zip from the latest release.
2 Unzip it in the main folder of your WHMCS (the one with configuration.php). The files go straight to modules/addons/mozout_sms_center.
3 In System Settings > Addon Modules, activate «SMS Center Notify» and give access to the admins who will use it.
4 Open Addons > SMS Center Notify > Settings: choose the provider, paste the key, pick the Sender ID and type your team numbers.
5 On the Test tab, send an SMS to check.
Do not use "Download ZIP" on the code page. That zip adds an extra folder and WHMCS will not find the module. The right file is mozout_sms_center.zip, attached to the release.

The API key and its permissions

The key needs sms:read and sms:write. It is only saved after the API accepts it, and it is kept encrypted in the WHMCS database. See how to create a key and pick its permissions.

Testing without spending

With a sandbox_ key, the SMS on the Test tab is simulated and uses no credits. When everything works, swap it for a prod_ key.

Good to know

Clients who do not want SMS: the addon creates the client field "I do not want SMS notices". Clients who tick it in their account details stop receiving them.

Accents: with the option on, accents are removed before sending. With accents, each SMS holds 70 characters instead of 160.

Sending log: every message goes there, with its status and the reason for a failure (no credits, invalid number, revoked key).

Deactivating: the settings, templates and log are kept. To remove everything, drop the mod_mozout_smsc_* tables and the sms_optout client field.

Would you rather write your own code? There is also a hook that calls our SMS API on invoices and payments.

Help

If the addon shows an error you do not understand, open a support ticket and tell us the module version and the message you see. The code is in the module repository, under the MIT license.

Ready to keep your clients posted by SMS?

Download the latest release

SEE ALSO

How to request a Sender ID

SMS notices from your own WHMCS: the hook

Creating an API key

The repository on MozOut Git

SDKs and integrations, in the API documentation

RECOMMENDED PRODUCT

Reseller hosting with WHM

Create, host and bill your own plans, under your own brand. from $35.57/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.