Created the sendMessage method to send SMS