protected function doSend(BlackberryMessage $message)
    {
        $separator = "mPsbVQo0a68eIL3OAxnm";
        $body = $this->constructMessageBody($message, $separator);
        $browser = new Browser(new Curl());
        $browser->getClient()->setTimeout($this->timeout);
        $listener = new BasicAuthListener($this->appID, $this->password);
        $browser->addListener($listener);

        $url = "https://pushapi.na.blackberry.com/mss/PD_pushRequest";
        if ($this->evaluation) {
            $url = "https://pushapi.eval.blackberry.com/mss/PD_pushRequest";
        }
        $headers = array();
        $headers[] = "Content-Type: multipart/related; boundary={$separator}; type=application/xml";
        $headers[] = "Accept: text/html, *";
        $headers[] = "Connection: Keep-Alive";

        $response = $browser->post($url, $headers, $body);

        return $this->parseResponse($response);
    }
protected function doSend(BlackberryMessage $message)
    {
        $separator = "mPsbVQo0a68eIL3OAxnm";
        $body = $this->constructMessageBody($message, $separator);
        $browser = new Browser(new Curl());
        $browser->getClient()->setTimeout($this->timeout);
        $listener = new BasicAuthListener($this->appID, $this->password);
        $browser->addListener($listener);

        $url = "https://pushapi.na.blackberry.com/mss/PD_pushRequest";
        if ($this->evaluation) {
            $url = "https://pushapi.eval.blackberry.com/mss/PD_pushRequest";
        }
        $headers = array();
        $headers[] = "Content-Type: multipart/related; boundary={$separator}; type=application/xml";
        $headers[] = "Accept: text/html, *";
        $headers[] = "Connection: Keep-Alive";

        $response = $browser->post($url, $headers, $body);

        return $this->parseResponse($response);
    }
protected function doSend ( BlackberryMessage $ message ) { $ separator = "mPsbVQo0a68eIL3OAxnm" ; $ body = $ this -> constructMessageBody ( $ message , $ separator ) ; $ browser = new Browser ( new Curl ( ) ) ; $ browser -> getClient ( ) -> setTimeout ( $ this -> timeout ) ; $ listener = new BasicAuthListener ( $ this -> appID , $ this -> password ) ; $ browser -> addListener ( $ listener ) ; $ url = "https://pushapi.na.blackberry.com/mss/PD_pushRequest" ; if ( $ this -> evaluation ) { $ url = "https://pushapi.eval.blackberry.com/mss/PD_pushRequest" ; } $ headers = array ( ) ; $ headers [ ] = "Content-Type: multipart/related; boundary={$separator}; type=application/xml" ; $ headers [ ] = "Accept: text/html, *" ; $ headers [ ] = "Connection: Keep-Alive" ; $ response = $ browser -> post ( $ url , $ headers , $ body ) ; return $ this -> parseResponse ( $ response ) ; }
Does the actual sending

@param  \RMS\PushNotificationsBundle\Message\BlackberryMessage $message
@return bool
Does the actual sending