i some cases we need to notify a client when client details have been changed
i have cretaed hook that can handle this
this hook will send email to cleint just before client details change on whmcs core
create a php file in whmcs/includes/hooks and copy this on file
<?php
add_hook('ClientEdit', 1, function($vars) {
$command = 'SendEmail';
$postData = array(
'messagename' => 'client notify account change',
'id' => $vars[userid],
);
$adminUsername = 'admin'; // Optional for WHMCS 7.2 and later
$results = localAPI($command, $postData, $adminUsername);
logActivity('Hook variables: '.print_r($vars, true));
});
also you should create email template in general section with this name
“client notify account change”