diff options
| -rw-r--r-- | README | 6 | ||||
| -rw-r--r-- | lib/sms_fu.rb | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -52,11 +52,11 @@ Example Usage deliver_sms("5558675309","at&t","your message here", :limit => 128) - * You can retrieve just the formatted address to use in your own mailer. + * You can retrieve just the formatted address to use in your own mailer. - get_sms_address("5558675309","at&t") + get_sms_address("5558675309","at&t") - This returns "5558675309@txt.att.net" + This returns "5558675309@txt.att.net" Copyright (c) 2008 Brendan G. Lim, released under the MIT license diff --git a/lib/sms_fu.rb b/lib/sms_fu.rb index 5932d4a..3e0e6d4 100644 --- a/lib/sms_fu.rb +++ b/lib/sms_fu.rb @@ -21,7 +21,6 @@ require 'yaml' # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. module SMSFu - RAILS_CONFIG_ROOT = defined?(RAILS_ROOT) ? "#{RAILS_ROOT}/config" : "#{File.dirname(__FILE__)}/../templates" @config = YAML::load(File.open("#{RAILS_CONFIG_ROOT}/sms_fu.yml")) @@carriers = @config['carriers'] @@ -33,6 +32,7 @@ module SMSFu options[:limit] ||= message.length message = message[0..options[:limit]-1] sms_email = determine_sms_email(format_number(number),carrier) + SmsNotifier.deliver_sms_message(sms_email,message) rescue SMSFuException => exception raise exception |
