@Override
    public boolean send(final String from, final String to, final String text) {
        try {
            val message = new SendMessageInputObject();
            message.setFrom(from);
            message.setText(text);
            message.setContacts(to);
            val result = this.api.sendMessage(message);
            return result != null && result.getMessageId() > 0;
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        }
        return false;
    }
This is {@link TextMagicSmsSender}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-sms-textmagic/src/main/java/org/apereo/cas/support/sms/TextMagicSmsSender.java