lib/contactable.rb
def send_sms!(msg, allow_multiple = false)
      if msg.to_s.size > 160 && !allow_multiple
        raise ArgumentError, "SMS Message is too long. Either specify that you want multiple messages or shorten the string."
      end
      return false if msg.to_s.strip.blank? || _TC_sms_blocked
      return false unless sms_confirmed?

      # split into pieces that fit as individual messages.
      msg.to_s.scan(/.{1,160}/m).map do |text|
        if TwilioContactable::Gateway.deliver_sms(text, _TC_formatted_phone_number).success?
          text.size
        else
          false
        end
      end
    end
def send_sms!(msg, allow_multiple = false)
      if msg.to_s.size > 160 && !allow_multiple
        raise ArgumentError, "SMS Message is too long. Either specify that you want multiple messages or shorten the string."
      end
      return false if msg.to_s.strip.blank? || _TC_sms_blocked
      return false unless sms_confirmed?

      # split into pieces that fit as individual messages.
      msg.to_s.scan(/.{1,160}/m).map do |text|
        if TwilioContactable::Gateway.deliver_sms(text, _TC_formatted_phone_number).success?
          text.size
        else
          false
        end
      end
    end
Sends one or more TXT messages to the contactable record's
 mobile number (if the number has been confirmed).
 Any messages longer than 160 characters will need to be accompanied
 by a second argument <tt>true</tt> to clarify that sending
 multiple messages is intentional.