Splynx Hooks no working

Hi i try all methods for hooks and i dont receive the email or sms can please tell me how put it working ?

Hi Alvin,
it works exactly like in this manual - How to send notification on some action from Splynx

show me, please, script which you use and version of your Splynx

i try this

#!/usr/bin/php
<?php

/* * don`t edit this block !!!! */
// Define STDIN
defined('STDIN') OR define('STDIN', fopen('php://stdin', 'r'));

// Get all data. Its is in JSON so we must decode it
$data = fgets(STDIN);

// Decode JSON
$data = json_decode($data, true);


/* * to send email edit this block */
$model = print_r($data,1); //print data-array
//send email
$to  = "a.nunez@ibss.com.do" ;                       //set your email
$subject = "Splynx test send-mailer"; 
$message = "{$model} \n Customer \"{$data['attributes']['name']}\" was created {$data['date']} by {$data['source']}";
$headers = "From: Admin <mail_box_from@semple.com>\r\n";

mail($to, $subject, $message, $headers);

and this

#!/usr/bin/php
<?php

include '  XMPPHP/XMPP.php';

/* * don`t edit this block !!!! */
// Define STDIN
defined('STDIN') OR define('STDIN', fopen('php://stdin', 'r'));

// Get all data. Its is in JSON so we must decode it
$data = fgets(STDIN);

// Decode JSON
$data = json_decode($data, true);

$conn = new XMPPHP_XMPP('mail.ibss.com.do', 5222, 'crm@ibss.com.do', 'password', 'crm', 'ibss.com.do', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);

try {
    $conn->connect();
    $conn->processUntil('session_start');
    $conn->presence();
    $conn->message('a.nunez@ibss.com.do', 'This is a test message!');
    $conn->disconnect();
} catch(XMPPHP_Exception $e) {
    die($e->getMessage());
}

My splynx version is Splynx 1.3

Hi Alvin,
looks good, please, create the ticket for this issue and I will check it on your server.