Skip to content

Instantly share code, notes, and snippets.

@jlntrt
Last active August 22, 2020 20:41
Show Gist options
  • Save jlntrt/e856ed7602b8bd636c4bc16a768243c6 to your computer and use it in GitHub Desktop.
Save jlntrt/e856ed7602b8bd636c4bc16a768243c6 to your computer and use it in GitHub Desktop.
# The SMScarrier breaks if a message is longer than > 160 characters.
# Every message the SMScarrier sends should also have a suffix: " - message X of Y"
# Instead of using SMScarrier, you can just output the messages to STDOUT
def send_sms_message(text, to, from)
deliver_message_via_carrier(text, to, from)
end
def deliver_message_via_carrier(text, to, from)
SMScarrier.deliver(text, to, from)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment