SMS not going
Hi
My logic hook not sending the sms here is the code .
For logic_hook.php
FOr sendsms.php
<?php
$hook_version = 1;
$hook_array = Array();
$hook_array['after_save'] = Array();
/* Added By Kunal on 27th june */
//$hook_array['after_save'][] = Array(1, 'sendsms', 'custom/modules/Calls/sendsms.php','sendsms', 'sendsms');
//$hook_array['after_relationship_add'][] = Array(1, 'hookName', 'pathToCustomLogicHookClassFile', 'CustomLogicHookClassName', 'CustomLogicHook');
$hook_array['after_relationship_add'][] = array(1,'LogCall','custom/modules/Calls/sendsms.php','sendsms','sendsms');
/* End */
?>
class sendsms{
function sendsms(&$bean, $event, $arguments){
//header("Location: http://enterprise.smsgupshup.com/GatewayAPI/rest?method=SendMessage&send_to=8688108128&msg=Wel come%20to%20SMS%20GupShup%20API&msg_type=TEXT&user id=2000060960&auth_scheme=plain&password=aWvHTfs88 &v=1.1&format=text");
echo '<script>window.location="http://www.enterprise.smsgupshup.com/GatewayAPI/rest?method=SendMessage&send_to=8688108128&msg=Wel come%20to%20SMS%20GupShup%20API&msg_type=TEXT&user id=2000060960&auth_scheme=plain&password=aWvHTfs88 &v=1.1&format=text"</script>';
}
}
How can this work
By mistake i write it two times ....
please check this one
please help me
Thank You
Kunal
Last edited by kshaw661; 2011-06-29 at 05:15 AM.
Kuanl Shaw
Software Engineer
penguinCRM pvt. ltd.
Hyderabad, India
Bookmarks