src/NotifierSmsAfricasTalkingService.php
public function sendMessageOne($sendSettings){
        //get the key of the first message
        reset($this->messages);
        $key = key($this->messages);
        $recipients = $this->messages[$key]["RECIPIENTS"];
        $message    = $this->messages[$key]["MESSAGE"];
        $senderName = $this->configuration["SMS_FROM_NAME"];
        
        //phpmailer exception used
        try {
            $this->mailHandler->sendMessage($recipients, $message, $senderName);
        } catch (AfricasTalkingGatewayException $ex) {
            die($ex->errorMessage());
        }
        
        //pop the message stack
        $msgStack = $this->messages;
        array_shift($msgStack);
        $this->messages = $msgStack;
    }
public function sendMessageOne($sendSettings){
        //get the key of the first message
        reset($this->messages);
        $key = key($this->messages);
        $recipients = $this->messages[$key]["RECIPIENTS"];
        $message    = $this->messages[$key]["MESSAGE"];
        $senderName = $this->configuration["SMS_FROM_NAME"];
        
        //phpmailer exception used
        try {
            $this->mailHandler->sendMessage($recipients, $message, $senderName);
        } catch (AfricasTalkingGatewayException $ex) {
            die($ex->errorMessage());
        }
        
        //pop the message stack
        $msgStack = $this->messages;
        array_shift($msgStack);
        $this->messages = $msgStack;
    }
function resetMessageById() - Send message where the payload has only
one message in its listing
@param   mixed $messageId

@return  boolean