
You can send SMS notification from WHMCS in Bangladesh by adding an SMS gateway, saving your API key, and firing a small hook when events happen. WHMCS does not send SMS by default, but a hook plus a local or global gateway fixes that in under an hour. This guide shows the full setup, a real example, costs, and the mistakes that stop messages from arriving.
CloudWave customers often ask us this because SMS reaches people in Bangladesh faster than email. If you plan to host WHMCS yourself, a small CloudWave VPS works well, with servers ready in under 60 seconds.
Why Send SMS From WHMCS in Bangladesh?
Email gets buried. SMS gets read. In Bangladesh, most people check a text within minutes. That matters for money and for trust.
- Invoice reminders. A text before the due date cuts late payments.
- Order alerts. New signups get instant proof their order worked.
- Server alerts. Down-time warnings reach you even offline.
- Password resets. A code by SMS is safer than email alone.
For example, a Dhaka web host with 400 clients sent one SMS three days before each invoice was due. Late payments dropped within a month. That is the real value: fewer chases, faster cash.
What You Need Before You Start
Gather these items first. It saves time later.
- A working WHMCS install, version 8 or newer.
- An SMS gateway account with an API key.
- An approved sender ID (mask) if your carrier needs one.
- Server access to add a hook file.
- A test phone number you own.
Tip: keep your API key in the WHMCS config file, not in the hook code. That way a code update never leaks it.
How To Send SMS Notification From WHMCS: Step By Step
Step 1: Pick an SMS Gateway
Choose a gateway with a simple HTTP API and a clear price in BDT. Local gateways often reach BD numbers faster and cheaper. Global ones are easier to set up but cost more per message.
Step 2: Save Your API Key
Open your WHMCS configuration.php file. Add your key like this:
define('SMS_API_KEY', 'your_key_here');
Then save the file. Do not paste the key inside the hook itself.
Step 3: Create the Hook File
Inside your WHMCS folder, open /includes/hooks/. Create a file named sms_notify.php. Add code that runs on an event, such as InvoicePaid. The hook reads the client’s phone number, builds the message, and calls the gateway URL with cURL.
Keep the message short. Under 160 characters fits one SMS part. Longer texts split and cost more.
Step 4: Format Phone Numbers
Bangladesh numbers need the country code. Store them as +8801XXXXXXXXX. Then strip spaces and dashes before sending. A wrong format is the number one reason messages fail.
Step 5: Test With Your Own Number
Create a test client in WHMCS. Use your own phone. Mark a test invoice as paid. Check the WHMCS activity log and your gateway’s delivery report. Only after the test text arrives should you switch on live events.
Step 6: Turn On More Events
Once it works, add more hooks. Good events include OrderPlaced, InvoiceCreated, and TicketOpen. Add them one at a time so you can spot errors fast.
Worked Example: A Small Dhaka Host
Rahim runs a small hosting brand in Dhaka. He hosts WHMCS on an Ubuntu VPS. He picks a local gateway with a BDT rate card.
First, he adds his API key to the config. Then he writes one hook for InvoicePaid. He tests with his own number. The text arrives in two seconds. Next week he adds a reminder three days before due dates.
Within a month, late payments fall. Support tickets about “did you get my payment?” also drop. Total effort: about one afternoon.
Which SMS Gateway Should You Use?
Here is a simple comparison. Prices vary, so always check the live rate card.
| Gateway | Best For | API Style | Notes |
|---|---|---|---|
| Bulk SMS BD | Local BD numbers | HTTP GET/POST | Local sender IDs, BDT billing |
| Twilio | Global reach | REST | Great docs, higher cost |
| Vonage (Nexmo) | Mixed regions | REST | Strong delivery reports |
| SSL Wireless | BD enterprise | HTTP | Popular with local firms |
| Alpha SMS | Small BD hosts | HTTP | Simple setup, low entry cost |
For most BD hosts, a local gateway wins on cost and speed. Global gateways win when you serve clients outside Bangladesh.
Common Mistakes To Avoid
- Wrong number format. Always use
+880and strip spaces. - No sender ID. Many BD carriers block unknown senders.
- Long messages. Over 160 characters splits and costs more.
- Hard-coded keys. Keep secrets in the config file.
- No test phase. Always test before firing live events.
- Ignoring logs. WHMCS logs and gateway reports show the truth.
Also, do not send SMS at 3 a.m. People hate that. Queue messages for daytime hours instead.
Should You Host WHMCS on a VPS?
Shared hosting can work, but it often blocks outbound API calls and cron jobs. A small VPS gives you full control. You get better logs, faster pages, and no surprise limits.
CloudWave plans start at $3.51 per month, billed hourly. That is 1/730 of the monthly price each hour. There is no contract and no setup fee. Servers deploy in under 60 seconds. You can run WHMCS on Ubuntu, Debian, AlmaLinux, or even Windows. Every plan includes a dedicated IPv4, IPv6, DDoS protection, and full root access.
If you use automation tools, CloudWave also installs apps like n8n and uptime-kuma in one click. That pairs well with a WHMCS setup.
For deeper reading on server basics, see the Ubuntu server docs and the DigitalOcean tutorials. Both are free and clear.
Key Takeaways
- WHMCS needs a gateway and a hook to send SMS.
- Use
+880format and an approved sender ID for BD numbers. - Keep messages under 160 characters to save money.
- Store API keys in the config file, never in the hook.
- Test with your own number before going live.
- A small VPS beats shared hosting for WHMCS.
- CloudWave VPS starts at $3.51 per month, billed hourly.
Conclusion
Sending SMS notification from WHMCS in Bangladesh is simple once you have a gateway, a key, and one hook. Start with a single event, test it well, then add more. The payoff is faster payments and happier clients. If you want full control, host WHMCS on a CloudWave VPS and deploy in under a minute.
Frequently asked questions
How do I send SMS notifications from WHMCS in Bangladesh?
Add an SMS gateway to WHMCS, store your API key, then use a hook to fire a message on events like invoice paid or order placed. Test with one number first. CloudWave VPS plans can host WHMCS from $3.51 per month.
Which SMS gateway works best with WHMCS in Bangladesh?
Popular picks are local BD gateways like Bulk SMS BD and international ones like Twilio or Vonage. Pick a gateway with a simple HTTP API, local sender ID support, and a clear per-SMS price in BDT.
Does WHMCS support SMS out of the box?
No. WHMCS sends email by default. For SMS you add a gateway module, a hook, or an addon. Most admins use a small PHP hook that calls the gateway's HTTP API.
How much does SMS cost in Bangladesh?
Local SMS in Bangladesh usually costs a few BDT per message, while international routes cost more. Prices change often, so check your gateway's live rate card before you commit.
Can I host WHMCS on a CloudWave VPS?
Yes. CloudWave runs WHMCS well on Ubuntu, Debian, AlmaLinux or Windows. Servers deploy in under 60 seconds, billed hourly from $3.51 per month, with root access and DDoS protection included.
Why are my WHMCS SMS messages not arriving?
Common causes are a wrong API key, an unapproved sender ID, a blocked port, or a phone number saved in the wrong format. Check the WHMCS activity log and your gateway's delivery report.
Do I need a local sender ID for Bangladesh SMS?
Often yes. Many BD carriers require a pre-approved sender ID, also called a mask, before messages reach customers. Ask your gateway to register your brand name first.
Is SMS better than email for WHMCS alerts?
SMS wins for urgent events like payment due, server down or password reset. Email is better for long invoices and PDFs. Use both for the best results.
How do I test WHMCS SMS without spamming customers?
Create a test client with your own phone number. Send a test invoice or run the hook manually. Only switch on live events after the test number gets the message.
Can I send SMS from WHMCS on a shared host?
Sometimes, but shared hosts often block outbound API calls or cron jobs. A small VPS gives you full control, better logs and faster page loads for your billing area.