|
@@ -5,12 +5,16 @@ if (!defined("WHMCS")) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function serviceAddon_CreateAccount(array $params) {
|
|
function serviceAddon_CreateAccount(array $params) {
|
|
|
|
|
+ if($params['Create_Mail' > 0]) {
|
|
|
|
|
+ $result = localAPI('SendEmail', ['id' => $params['Create_Mail']]);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'iServiceAddon',
|
|
'iServiceAddon',
|
|
|
__FUNCTION__,
|
|
__FUNCTION__,
|
|
|
$params,
|
|
$params,
|
|
|
'Debug',
|
|
'Debug',
|
|
|
- App::self()
|
|
|
|
|
|
|
+ $result
|
|
|
);
|
|
);
|
|
|
return 'success';
|
|
return 'success';
|
|
|
}
|
|
}
|