github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

brendanlim / sms-fu

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 179
    • 21
  • Source
  • Commits
  • Network (21)
  • Issues (0)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • gh-pages
    • master ✓
  • Tags (1)
    • v1.0.0
Sending Request…
Click here to lend your support to: sms-fu and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Allows you to send an SMS in the form of an e-mail to a cell phone from your Rails application — Read more

  cancel

http://intridea.com/2008/3/30/sms-fu-quickly-easily-send-text-messages

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updating README and CHANGELOG 
brendanlim (author)
Fri Oct 30 12:17:21 -0700 2009
commit  a59ba52a34e86c17a02ee4d4f4a1b08d9b3dccc1
tree    b34d910e210ef06d5f5e6bb3f6c0d489f6442b86
parent  569bf6f5c0d3f47cc2f4c49771f4ddcc4f196f52
sms-fu /
name age
history
message
file .gitignore Thu Oct 22 10:33:01 -0700 2009 merge adamalex/master and added .gitignore [pboling]
file CHANGELOG Fri Oct 30 12:15:08 -0700 2009 Updating README and CHANGELOG [brendanlim]
file MIT-LICENSE Sun Mar 30 13:10:05 -0700 2008 Initial import [brendanlim]
file README.rdoc Fri Oct 30 12:17:21 -0700 2009 Updating README and CHANGELOG [brendanlim]
file Rakefile Mon Jul 20 16:15:09 -0700 2009 Adding in gemspec [brendanlim]
file VERSION Mon Jul 20 16:15:09 -0700 2009 Adding in gemspec [brendanlim]
file init.rb Thu Oct 22 11:59:23 -0700 2009 fixed tests so that they actually run (and all ... [pboling]
file install.rb Fri Apr 18 23:17:51 -0700 2008 Adding in kajeet to carrier list and updated RE... [brendanlim]
directory lib/ Fri Oct 23 00:00:06 -0700 2009 default phrase should not force a blank option ... [pboling]
file sms-fu.gemspec Mon Jul 20 16:15:18 -0700 2009 Regenerated gemspec for version 1.0.0 [brendanlim]
directory tasks/ Sun Mar 30 13:10:05 -0700 2008 Initial import [brendanlim]
directory templates/ Thu Oct 22 15:03:44 -0700 2009 add nextel to default YAML [mlc]
directory test/ Thu Oct 22 12:37:50 -0700 2009 improved setting of RAILS_CONFIG_ROOT [pboling]
file uninstall.rb Sun Mar 30 13:10:05 -0700 2008 Initial import [brendanlim]
directory views/ Sat Feb 28 17:54:46 -0800 2009 fixing some issues with 2.2 [brendanlim]
README.rdoc

SMS Fu

Want to send an SMS from your Rails application? SMS Fu allows you to do just that. It allows you to send a text-message in the form of an e-mail to a cell phone on any of the supported carriers.

Supported Carriers (US & International):

Alltel, Ameritech, AT&T, Bell Atlantic, BellSouth Mobility, Beeline(UA), BlueSkyFrog, Boost Mobile, BPL Mobile, Cellular South, Claro (Brazil, Nicaragua), Comcast, Du, E-Plus, Etisalat, Fido, kajeet, Mobinil, Mobitel, Movistar, Metro PCS, O2, Orange, Powertel, PSC Wireless, Qwest, Rogers, Southern Link, Sprint, Suncom, T-Mobile (US/UK/Germany), Telefonica, Tracfone, Virgin Mobile, Verizon Wireless, Vodafone (UK, Egypt, Italy, Japan, Spain), and many more …

Opt-In Warning for Some International Carriers

Some International carriers require that their users subscribe to an Email to SMS feature before they are able to receive SMS messages this way. If one your users mentions that they are not receiving their messages, chances are it is due to this limitation.

Some carriers that need this include, Mobitel, Etisalat, T-Mobile (Netherlands), etc.

Setup Instructions

Add this this one line to the controller you want to be able to use SMS Fu in.

    class ExampleController < ApplicationController
      has_sms_fu
    end

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 some of the default carrier values:
      Alltel Wireless   =>  "alltel"
      AT&T/Cingular     =>  "at&t"
      Boost Mobile      =>  "boost"
      Sprint Wireless   =>  "sprint"
      T-Mobile US       =>  "t-mobile"
      T-Mobile UK       =>  "t-mobile-uk"
      Virgin Mobile     =>  "virgin"
      Verizon Wireless  =>  "verizon"
      Vodafone Tokyo    =>  "vodafone-jp-tokyo"
    
  • Check sms_fu.yml for a complete list of supported carriers, including international carriers as well.
      deliver_sms("5558675309","at&t","message")
    
  • If you want to set a custom from e-mail per SMS message, you can do so by doing the following.
      deliver_sms("5558675309","at&t","message", :from => "bob@test.com")
    
  • You can set the maximum length of the SMS message, which is not set by default. Most phones can only accept 128 characters. To do this just specify the limit option.
      deliver_sms("5558675309","at&t","message", :limit => 128)
    
  • You can retrieve just the formatted address to use in your own mailer.
      get_sms_address("5558675309","at&t") # => "5558675309@txt.att.net"
    

View Helpers

  • Retrieve a collection of all carriers
      <%= carrier_collection %>
    
  • Display a select box with mobile carriers
      <%= carrier_select %>
    
  • Display a custom select box with mobile carriers
      <%= carrier_select('user[carrier_name]', "Please choose a carrier") %>
    

Special Thanks

I want to thank the following individuals with their help with adding some patches to SMS Fu:

  • Brent Collier (brentmc79)
  • Peter Boling (pboling)
  • Mike (mic)

Copyright © 2008 Brendan G. Lim, Intridea, Inc., released under the MIT license

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server