I want to send an SMS to user when he/she create a new ticket So i have call a function send_SMS on onNewTicket function.I have successfully send SMS to my number but I want to send sms to user's number, So i couldn't get user phone number in onNewTicket function.My code:<pre>foreach( $recipients as $k=>$staff) {                if(!is_object($staff) || !$staff->isAvailable() || in_array($staff->getEmail(), $sentlist)) continue;                $alert = $this->replaceVars($msg, array('recipient' => $staff));                $email->sendAlert($staff, $alert, $alert, null, $options);                $sentlist = $staff->getEmail();            }        }        $numbers = '99********';   // this is static number I want to send on user's number.        send_SMS($numbers,$myMSG);</pre>

moving thread to mods and customizations.I'll keep it in the 1.8 section of the forum since that's where you posted it.

4 years later

Hi there! , I just want to know that how and where we can add the code , to send the SMS notification that the ticket is closed. I am new to osTicket, can you please guide me what steps i need to follow.

Thanks in advance.

This is the About System page

This thread is 4 years old.
Killing zombie thread with a head shot.

Write a Reply...