www.SmarteGuru.com
  Home | Blogs | Recipe | Find a Friend | Discussion Board | Resources | Developers Area | Articles | Health |  Login | Register Now 

Send SMS via ruby on rails code with SMS fu plugin

Quick Rails plugin that allows you to send an SMS from your application. This does not require any kind of “gateway” or third-party service to get the job done. The plugin takes in a phone number, the carrier, and a message. From this information, it will format an e-mail correctly that will actually end up being sent to that phone in the form of a text message. How easy is it to use? Very.

You can grab the latest from GitHub.

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

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).
Note: International carriers aren’t supported at the moment

Add this one include line to one of your controllers.
view plaincopy to clipboardprint?

class ExampleController < ApplicationController
include SMSFu
end

After this, just edit /config/sms_fu.yml with your custom reply-to address.

The three required parameters are the phone number, carrier, and the message itself. You can find the correct carrier codes in sms_fu.yml.

view plaincopy to clipboardprint?

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

You can set the maximum length of the SMS message, which is not set by default. Most phones can only accept 128 characters, and each phone can handle these messages differently. To set the limit, just pass it in as an option when delivering an SMS.
view plaincopy to clipboardprint?

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

If you want to roll your own mailer and just want to use SMS Fu to retrieve the formatted address of the recipient, you can do so by doing the following below.
view plaincopy to clipboardprint?

get_sms_address("5558675309","AT&T")

Provided By: http://brendanlim.com/2008/2/28/send-text-messages-from-rails-with-sms-fu

Related Posts

Tags: , , , ,


Viewed: 1,286 views

5 Responses to “Send SMS via ruby on rails code with SMS fu plugin”

  1. Bouszooni Says:

    Vitamin therapies, based on oil soluble B complexes, are known to have a powerful role in healing damaged nerve cells without side effects, are based on sound medical principles …and provide bright hope for healing peripheral neuropathy. The aorta is the main artery of the body whose branches go to the head, arms, and legs. People taking ZYPREXA should be aware of the signs of high blood sugar. The known side effects are weight gain and a sense of sedation. coli ; Klebsiella; and Proteus mirabilis.It is not active against Pseudomonas. This strain produces more severe colitis than the usual strains. As soon as I showed signs of recovery, he focused his attention on flagging down other cars to get directions to the nearest hospital. Guidelines from the U.S. National Cholesterol Education Panel (NCEP) recommend higher doses of statins for people who have a moderate to high risk of heart attack.9 The goal is to lower your chances of having a heart attack or stroke. Side effects are more likely and may be more severe when higher doses of statins are used. This diagnose my skin rash article is intended to help individuals with their skin care problem. In these women, if taken without progesterone, estrogen increases a woman’s risk for cancer of the endometrium (the lining of the uterus). Now we show that it matters how we lower it,” says Dahlof, a researcher at the University of Gotenborg, Sweden. Treatment goals consist of relieving pain and stiffness as well as maintaining function. However, women also have problematic impulsive aggression, and some women have reported an increase in intermittent explosive symptoms when they are premenstrual. Informs Bob, “the rate at which this wonder pill is catching up, however, indicates the success rate and satisfied users worldwide; going by statistics, four out of every five men (which amounts to twenty per cent) who have used the pill have had satisfactory results and more. It has gained confidence of people due its amazing performance. For example, ads on television present a group of very attractive women, all smiling and showing off their trim, tanned, well-toned midsections. My wife came to that point a few weeks ago. The United States Surgeon General recommends that women, children and men to consume an adequate amount of Calcium and Vitamin D to help build strong bones. Ezetimibe is a medication that helps lower cholesterol levels by blocking the absorption of cholesterol (any kind – including dietary cholesterol) from the intestines. The tried-and-true anti-inflammatory medications can relieve pain, improve daily function, reduce joint swelling and tenderness, and improve range of motion — and that’s all good. During the active period of labor, continuous fetal heart monitoring is done to watch for early signs of fetal distress or uterine rupture. Patients would discover that their strong pain medication was just an expensive aspirin. A study published in the Archives of Neurology showed that people who ate Omega 3 rich fish such as salmon once a week or more had a substantially lower risk of Alzheimer’s disease. Just like those odd instructions on your blow dryer that warns you not to use it while taking a shower, medical providers often have to be painfully clear with instructions to avoid unintentional errors. An agent with comparatively less gastrointestinal (GI) side effects like ibuprofen and diclofenac should be preferred in place of indomethacin, piroxicam, or naproxen, which are more gastrotoxic.

  2. Extineseing Says:

    Hi,
    I’m new to the forum and just saying hello.

  3. Trackback - Free Internation Call >> How to make free international call Says:

    ,[...] blogs.smarteguru.com is one another useful source on this subject,[...]

  4. Seomieyohuz Says:

    Draco offers [url=http://herporweru.com/baton-rouge-serzone-attorneys/]chicago serzone lawyers[/url] olie refused [url=http://herporweru.com/when-will-generic-zocor-be-available/]zocor drug ezetimibe information vytorin[/url] olph that [url=http://herporweru.com/anpan-buta/]butas anderson sc[/url] you find [url=http://herporweru.com/prilosec-taking-two/]prilosec doesn27t work[/url] onspiracy had [url=http://herporweru.com/safety-fulvicin-fluconazole-cat/]fulvicin uf[/url] and gems [url=http://herporweru.com/psilocyn/]psilocyn side effects[/url] ncompassed them [url=http://herporweru.com/3d-structure-valtrex/]valtrex dosage oral herpes[/url] each picking [url=http://herporweru.com/withdrawal-from-zestoretic/]thiazide diuretic zestoretic[/url] for another [url=http://herporweru.com/hct-lotensin/]lotensin altace[/url] the flower [url=http://herporweru.com/buta-connection/]buta kurenai no[/url] goblins stared [url=http://herporweru.com/atenolol-indication/]ic atenolol side effects[/url] make good [url=http://herporweru.com/avandia-night-sweats/]is avandia safe[/url] many him [url=http://herporweru.com/zovirax-dose-during-pregnancy/]valtrex or zovirax[/url] magical prince [url=http://herporweru.com/buspar-withdrawls-aren't-bad/]buspar it latest word works[/url] that worried [url=http://herporweru.com/klonopin-valium/]lethal klonopin dose for dogs[/url] knew she [url=http://herporweru.com/diabetes-reduction-assessment-with-ramapril-rosiglitazone/]drug effect enzymes liver pdf rosiglitazone[/url] her staff [url=http://herporweru.com/nifedipine-vs-captopril/]captopril rebate[/url] his will [url=http://herporweru.com/glucophage-lose-weight/]glucophage no prescription[/url] who never [url=http://herporweru.com/flumadine-manufacturer/]generic for flumadine[/url] bleeding variety [url=http://herporweru.com/allopurinol-dosage/]allopurinol and gout[/url] tork summoning [url=http://herporweru.com/side-effects-of-verapamil/]verapamil expiration date[/url] adults managed [url=http://herporweru.com/what-is-lotensin/]generic lotensin[/url] olph grabbed [url=http://herporweru.com/steroids-storing/]buy steroids on line[/url] what did [url=http://herporweru.com/sumatriptan-citalopram-interaction/]sumatriptan release tablet[/url] their leader [url=http://herporweru.com/fluconazole-overnight/]medlineplus drug information fluconazole[/url] adult animal [url=http://herporweru.com/effexor-plus-wellbutrin/]wellbutrin law suit[/url] had problems [url=http://herporweru.com/benazepril-equivalent-ramipril-dose/]ramipril 2bdrug[/url] the wrong [url=http://herporweru.com/lo-ovral-chemical-contests/]coming off lo ovral side affects[/url] would choose [url=http://herporweru.com/buspar-discussion-boards/]buspar trigger alcohol cravings[/url] raco said [url=http://herporweru.com/diprolene-ointment-0.05/]diprolene gel no prescription[/url] one damn [url=http://herporweru.com/nifedipine-once-a-day/]nifedipine side effects[/url] reveal her [url=http://herporweru.com/free-nicotrol-inhaler/]effects of nicotrol nicorrette[/url] ould something [url=http://herporweru.com/tiazac-withdrawal/]tiazac medication[/url] oiph realized [url=http://herporweru.com/drug-interaction-valium-and-prilosec/]prilosec otc 48[/url] gills couldn [url=http://herporweru.com/softtabs-from-u-s-online/]free free zenegra softtabs online[/url] her remaining [url=http://herporweru.com/zestril-full-prescribing-information/]zestril prinivil[/url] done the [url=http://herporweru.com/climara-pro/]estradiol and climara[/url] not feasible [url=http://herporweru.com/valsartan-hydrochlorothiazide/]bad effects hydrochlorothiazide side[/url] help your [url=http://herporweru.com/hives-and-ramipril/]ramipril pil[/url] tagonizing natives [url=http://herporweru.com/ghb-construction-ok/]what is ghb[/url] ees and [url=http://herporweru.com/guaranteed-testosterone-booster/]level low symptom testosterone[/url] more progress [url=http://herporweru.com/risedronate-for-osteoarthritis/]european generic providers risedronate[/url] you take [url=http://herporweru.com/cyclobenzaprine-or-flexeril-drug-class/]can flexeril effect sex drive[/url] are near [url=http://herporweru.com/acetaminophen-zebutal/]zebutal[/url] from answering [url=http://herporweru.com/norvasc-foot-swelling/]norvasc protein binding[/url] had approached [url=http://herporweru.com/india-ionamin/]cheapest ionamin january cheapest ionamin[/url] what was [url=http://herporweru.com/condylox/]0.5 condylox gel[/url] had reduced [url=http://herporweru.com/how-long-side-effects-methylprednisolone/]8 mg methylprednisolone[/url] the porous [url=http://herporweru.com/celecoxib-proof-of-prevention-of-cancer/]nursing responsibilities for celecoxib[/url] gag tied [url=http://herporweru.com/buy-tussionex-without-perscption/]tussionex shelf life[/url] clanging sound inevitable.

  5. Moviebonzo Says:

    that’s hard to believe

Leave a Reply

Comment moderation is enabled. Your comment may take some time to appear.

Home - About Us - Help - Terms and Conditions - Site Map - Link to Us - Resources - Contact Us
Google Rank Calculator | Suggest developer resource | Suggest Article
All rights reserved © 2007 SmarteGuru.com.