public function sendMessage(
        $to,
        $message,
        $from = null,
        $reportMask = 19,
        $reportUrl = null,
        $charset = null,
        $dataCoding = null,
        $messageClass = -1,
        $autoDetectEncoding = false
    ) {
        $data = [
            'to' => $to,
            'text' => $message,
            'from' => $from,
            'report_mask' => $reportMask,
            'report_url' => $reportUrl,
            'charset' => $charset,
            'data_coding' => $dataCoding,
            'message_class' => $messageClass,
            'auto_detect_encoding' => $autoDetectEncoding ? 1 : 0,
        ];
        return $this->get('message_send', $data);
    }
public function sendMessage(
        $to,
        $message,
        $from = null,
        $reportMask = 19,
        $reportUrl = null,
        $charset = null,
        $dataCoding = null,
        $messageClass = -1,
        $autoDetectEncoding = false
    ) {
        $data = [
            'to' => $to,
            'text' => $message,
            'from' => $from,
            'report_mask' => $reportMask,
            'report_url' => $reportUrl,
            'charset' => $charset,
            'data_coding' => $dataCoding,
            'message_class' => $messageClass,
            'auto_detect_encoding' => $autoDetectEncoding ? 1 : 0,
        ];
        return $this->get('message_send', $data);
    }
public function sendMessage ( $ to , $ message , $ from = null , $ reportMask = 19 , $ reportUrl = null , $ charset = null , $ dataCoding = null , $ messageClass = - 1 , $ autoDetectEncoding = false ) { $ data = [ 'to' => $ to , 'text' => $ message , 'from' => $ from , 'report_mask' => $ reportMask , 'report_url' => $ reportUrl , 'charset' => $ charset , 'data_coding' => $ dataCoding , 'message_class' => $ messageClass , 'auto_detect_encoding' => $ autoDetectEncoding ? 1 : 0 , ] ; return $ this -> get ( 'message_send' , $ data ) ; }
Send an SMS.

**Example**

```php
$index = $client->sendMessage('+27000000000', 'This is my message content!');
```

@param string $to
@param string $message
@param string $from
@param int $reportMask
@param string $reportUrl
@param string $charset
@param int $dataCoding
@param int $messageClass
@param bool $autoDetectEncoding

@return mixed
Send an SMS .