enable) return false; try { $api = new ZApi($conf->key, $conf->secret, false); $res = $api->sendSms($to, $message, $conf->callerId); } catch(ZException $e) { return false; } return true; } }