Agile Web Development

Build it. Launch it. Love it.

SMS Fu

Installation

      script/plugin install git://github.com/brendanlim/sms-fu.git

    Supported Carriers:

    Alltel, Ameritech, AT&T, BellSouth Mobility, BlueSkyFrog, Boost Mobile,
 Cellular South, Fido, Metro PCS, PSC Wireless, Qwest, Southern Link, Sprint,
 Suncom, T-Mobile (US/UK/Germany), Virgin Mobile, Verizon Wireless,
 Vodafone (UK,Italy,Japan).

Setup Instructions

   1. Add this this one line to the controller you want to be able to

use SMSFu in.

      class ExampleController < ApplicationController
        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.
    * Carrier values are located in the sms_fu.yml file.
      deliver_sms("5558675309","at&t","your message here")

    * You can also truncate the length of the message you are sending

by specifying the limit option.

   deliver_sms("5558675309","at&t","your message here", :limit => 128)

    *  If you want to roll your own mailer, you can just choose to receive
 the formatted SMS e-mail address only.

   get_sms_address("5558675309","at&t")'

Vitals

Home http://brendanlim.com/2008/2/28/send-text-messages-from-rails-with-sms-fu
Repository http://github.com/brendanlim/sms-fu/tree/master
License Rails' (MIT)
Tags Tag_red brendan fu lim openid sms smsfu
Rating (142 votes)
Owner Brendan G. Lim
Created 19 January 2008

Comments

  • Andrew
    19 January 2008

    Removed? What happened ??

  • Charlie
    19 January 2008

    yeah I was looking forward to using this. Why was it removed?

  • Avatar
    george
    20 January 2008

    i cant see no nothing here. wat 'appened? removed?

  • Avatar
    Brendan G. Lim
    22 February 2008

    It's been re-added. Sorry about that guys.

  • David
    27 February 2008

    Hey, thanks for sharing this!

  • brad
    14 July 2008

    ehm.. and who pays for the delivery?

  • Avatar
    Brendan G. Lim
    18 July 2008

    Nobody pays through the delivery since it goes through e-mail.

  • Avatar
    21 July 2008

    brad - The message is sent through e-mail, so no third party gateway is needed.

  • Avatar
    23 August 2008

    Brad, it's sent through e-mail so there's no payment for the delivery.

  • Brian
    24 August 2008

    email gateways are free...except for the end user.

Add a comment