Sending Mobile SMS in Ruby on Rails using twilio? gem install twilio-ruby In Controller U need to add the require 'twilio-ruby' @account_sid = 'AC3ddc5567a441ea2fdf0a460452599aa6' @auth_token = '9aefac893c9c9214770046ecb796d6c8' @client = Twilio::REST::Client.new(@account_sid, @auth_token) p @client.account @client.account.messages.create(from: '+12019044303', to: '+919538947694',body: 'Hello koteshwarrao welcome to my blog') Notes: From number is nothing but twillo number To Number is from whom u need to send the message Use Only Live credentials only @account_sid is twilio account id @auth_token is twilio auth token Before Sending any message to mobile the mobile number need to be verified to twilio account.
I love Ruby on rails.Ruby on Rails Coding is not my job its my passion ..