This is a linear-based PHP script that I used to integrated the billing of Sendy mailing lists through WHMCS. It works exclusively in situations where WHMCS and Sendy are installed on the same server. cPanel is not required to use it, but it is recommended. Here’s an overview of what it does:
- Executed by Cron the script looks at the WHMCS billing database for clients with the Mailing List Service you created.
- For each customer that has the mailing list server, the script then looks through the Sendy database to see how many emails were sent by that client since the last time the script executed.
- The script then totals up the emails and calculates the new email charges based on the price per email that you set in the script.
- The script then performs an API call to WHMCS to write the new charges as a Billable Item which will automatically add itself to your client’s next invoice.
Click Here for Detailed Installation Instructions
The code is approximately 220 lines and is very well documented. It may be modified to meet your needs, but it may not be resold.
If you need Sendy, you can get it here: Sendy.
If you need WHMCS, you can get that here: WHMCS.
Latest posts by Curtis Steinbacher (see all)
- Integrate Sendy with WHMCS Billing for less than a Latte - April 25, 2021
- Can I Really Make Money With Web Hosting? - July 5, 2016
- Can Independent Web Hosts Be Competitive? Here Are 3 Proven Ways - July 1, 2016