Class: SMSNotifier

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/sms_fu/sms_notifier.rb

Instance Method Summary collapse

Instance Method Details

#send_sms(recipient, message, sender_email) ⇒ Object



2
3
4
5
6
7
# File 'lib/sms_fu/sms_notifier.rb', line 2

def send_sms(recipient, message, sender_email)
  mail(:to => recipient, :from => sender_email, :subject => '') do |format|
    format.text { render :text => message }
    format.html { render :text => message }
  end
end