@Override
    public boolean send(final String from, final String to, final String message) {
        try {
            val textMessage = new TextMessage(from, to, message);
            val response = nexmoClient.getSmsClient().submitMessage(textMessage);
            if (response.getMessageCount() > 0) {
                val results = response.getMessages().stream()
                    .filter(res -> res.getStatus() != MessageStatus.OK).toList();
                if (results.isEmpty()) {
                    return true;
                }
                results.forEach(res -> LOGGER.error("Text message submission has failed: [{}]", res));
            } else {
                LOGGER.error("No text messages could be sent. Response [{}]", response);
            }
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        }
        return false;
    }
This is {@link NexmoSmsSender}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-sms-nexmo/src/main/java/org/apereo/cas/support/sms/NexmoSmsSender.java