protected function sendOne($dry_run)
    {
        $message = $this->messages[0];
        $adapter = $this->getAdapter();

        $adapter->setEndpoint(self::SINGLE_ENDPOINT);
        $adapter->setParameters(array(
            'user' => $this->config['user'],
            'password' => $this->config['password'],
            'serviceid' => $this->config['serviceid'],
            'sender' => ($message->options['from'] ?: $this->config['from']),
            'message' => $message->message,
            'msisdn' => $message->to,
            'price' => $this->config['price'],
            'overcharge' => $this->config['overcharge'],
        ));

        if ($dry_run) {
            return $adapter->dryRun();
        }

        return $adapter->post();
    }
protected function sendOne($dry_run)
    {
        $message = $this->messages[0];
        $adapter = $this->getAdapter();

        $adapter->setEndpoint(self::SINGLE_ENDPOINT);
        $adapter->setParameters(array(
            'user' => $this->config['user'],
            'password' => $this->config['password'],
            'serviceid' => $this->config['serviceid'],
            'sender' => ($message->options['from'] ?: $this->config['from']),
            'message' => $message->message,
            'msisdn' => $message->to,
            'price' => $this->config['price'],
            'overcharge' => $this->config['overcharge'],
        ));

        if ($dry_run) {
            return $adapter->dryRun();
        }

        return $adapter->post();
    }
protected function sendOne ( $ dry_run ) { $ message = $ this -> messages [ 0 ] ; $ adapter = $ this -> getAdapter ( ) ; $ adapter -> setEndpoint ( self :: SINGLE_ENDPOINT ) ; $ adapter -> setParameters ( array ( 'user' => $ this -> config [ 'user' ] , 'password' => $ this -> config [ 'password' ] , 'serviceid' => $ this -> config [ 'serviceid' ] , 'sender' => ( $ message -> options [ 'from' ] ? : $ this -> config [ 'from' ] ) , 'message' => $ message -> message , 'msisdn' => $ message -> to , 'price' => $ this -> config [ 'price' ] , 'overcharge' => $ this -> config [ 'overcharge' ] , ) ) ; if ( $ dry_run ) { return $ adapter -> dryRun ( ) ; } return $ adapter -> post ( ) ; }
We use smspush for sending single messages.

@return string $response;
We use smspush for sending single messages .