Softaculous


Topic : Setup Admin Email Notification for new installs


Posted By: titanhost on April 28, 2017, 9:15 pm
Hey all,

I was curious as to the best way (if it can be done) to setup admin notification emails for new script installations.

Example:

Client installs a new WordPress instance via softaculous. Once the install completes successfully, the admin email would be triggered.

The email itself would primarily need to contain the following data:

- cPanel user that triggered the installation
- URL of the new installation


I am familiar with PHP development but I don't have an in-depth knowledge of Softaculous, so I wanted to make sure I was approaching this the right way.

Posted By: Brijesh on April 29, 2017, 8:04 am | Post: 1
Hi,

You can use the Post Install filter in Softaculous :
https://www.softaculous.com/docs/Filters#post_install

This filter is triggered after each installation is completed. You can use the use the details you receive as the parameter and send an email.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: titanhost on April 29, 2017, 4:07 pm | Post: 2
Brijesh,

Thanks for your reply. This appears to be exactly what I'm looking for!

One more question: Do you have a recommendation for how best to retrieve the cPanel username that ran the installation?

Thanks again for your help.

Posted By: Brijesh on May 2, 2017, 1:42 pm | Post: 3
Hi,

You can globalize the $softpanel in your filter and use the following :
Code
$softpanel->user['name']


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.