Hi Andrew
I guess two problems here.
First is what are you going to use to transport the SMS. There are tons of gateway products on the market as you know. Some just rely on you sending an email to the gateway @[deleted]
So in class_ticket assignstaff instead of
if($email) {
$email->send($staff->getEmail(),$subj,$body);
}
I guess you would end up with this.
if($email) {
$to=$staff->getEmail() . ",mobile@somegateway.co.uk";
$email->send($to,$subj,$body);
}
I use a PHP API from textmarketer.com for my day job. There are loads of these products on the market. TM was the first one to be helpful.
You can just use an AJAX call directly from the assign button
This is an example of the Textmarketer API.
$sms = new SendSMSXML("myaccount","mypassword");
$smsg=$sms->send($phone,$message,"Subject");
if($sms->getError()){
echo " Gateway: ". $sms->getError();
}
else {
echo " Text sent to " . $phone;
}
The ajax calls would be client side javascript to call a new page called something like sms_send.php
Regards
G