Plugin details

This is a Ruby on Rails plugin that gives you the ability to send an SMS (text message) to a cell phone by providing the phone number and carrier.

Websitehttp://brendanlim.com/2008/2/28/send-text-messages-from-rails-with-sms-fu Repositoryhttp://sms-fu.googlecode.com/svn/trunk/sms_fu Author Brendan G. Lim Tags sms, fu, smsfu, brendan lim, txt message, txt, sms fu LicenseRuby's (MIT)

Documentation

Install the plugin:
ruby script/plugin install http://sms-fu.googlecode.com/svn/trunk/sms_fu

or pull the latest from GitHub:

git clone git://github.com/brendanlim/sms-fu.git vendor/plugins/sms_fu



Supported Carriers:

Alltel, AT&T, Boost Mobile, Sprint, T-Mobile, Virgin Mobile, Verizon Wireless

Setup Instructions
------------------

1) Add this this one line to the controller you want to be able to use SMSFu in.

      class ExampleController < ActionController::Base
        include SMSFu
      end




2) Modify sms_fu.yml in your config folder with your reply-to e-mail address.

That's it! Now you're good to go.


Example Usage
-------------

* You have to send in the phone number, without any non-numeric characters. The phone numbers must be 10 digits in length.
* The two required parameters are the phone number and the phone carrier.
* Here are the carrier values:

	Alltel Wireless 	=> 	"Alltel"

	AT&T/Cingular 		=> 	"AT&T"

	Boost Mobile		=> 	"Boost"

	Sprint Wireless		=>	"Sprint"

	T-Mobile		=>	"T-Mobile"

	Virgin Mobile		=> 	"Virgin"

	Verizon Wireless	=>	"Verizon"




deliver_sms("5558675309","AT&T","your message here")




* You can override the default maximum length of the SMS message, which is 128 characters. Most phones can only accept 128 characters. To do this just specify the limit option.

deliver_sms("5558675309","AT&T","your message here", :limit => 128)

Further Documentation

Edit plugin | Back in time (5 older versions) | Last edited by: brendanlim, over 2 years ago