summaryrefslogtreecommitdiffstats
path: root/lib/sms_notifier.rb
diff options
context:
space:
mode:
authorBrendan G. Lim2008-07-31 13:48:15 -0400
committerBrendan G. Lim2008-07-31 13:48:15 -0400
commit3912b0b91621ba1a827585f3b22c1426fc70c9e4 (patch)
tree1a49af99446b06490544835ea5dcba50aef728e4 /lib/sms_notifier.rb
parent09fc1fa3076082d98b61f7cdf0d10dd5abd30a1a (diff)
downloadsms-fu-3912b0b91621ba1a827585f3b22c1426fc70c9e4.tar.bz2
Adding ability to specify custom from address per mailing
Diffstat (limited to 'lib/sms_notifier.rb')
-rw-r--r--lib/sms_notifier.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sms_notifier.rb b/lib/sms_notifier.rb
index 1dff814..5d960c6 100644
--- a/lib/sms_notifier.rb
+++ b/lib/sms_notifier.rb
@@ -22,13 +22,11 @@ require 'yaml'
class SmsNotifier < ActionMailer::Base
@config = YAML::load(File.open("#{RAILS_ROOT}/config/sms_fu.yml"))
- @@from_address = @config['config']['from_address']
- cattr_accessor :from_address
- def sms_message(recipient, message)
+ def sms_message(recipient, message, sender_email)
content_type "text/plain"
recipients recipient
- from from_address
+ from sender_email
body['message'] = message
end