diff options
| author | Brendan G. Lim | 2010-08-29 00:06:12 -0500 |
|---|---|---|
| committer | Brendan G. Lim | 2010-08-29 00:06:12 -0500 |
| commit | e463a42e8f056c40ac1516496859bf3859b7ba40 (patch) | |
| tree | f741d242a712504bc1859ec8c39a38c4ce482493 | |
| parent | 5875318580bb4ead209bd1a46999cf68431b94d7 (diff) | |
| download | sms-fu-e463a42e8f056c40ac1516496859bf3859b7ba40.tar.bz2 | |
Fix for ActionMailer 3 delivery
| -rw-r--r-- | lib/sms_fu/sms_fu.rb | 2 | ||||
| -rw-r--r-- | lib/sms_fu/sms_notifier.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sms_fu/sms_fu.rb b/lib/sms_fu/sms_fu.rb index bda61af..f726ca2 100644 --- a/lib/sms_fu/sms_fu.rb +++ b/lib/sms_fu/sms_fu.rb @@ -50,7 +50,7 @@ class SMSFu :via => @@mail_config[:pony_options][:via], :via_options => @@mail_config[:pony_options][:via_options]) else - SMSNotifier.send_sms(email, message, from) + SMSNotifier.send_sms(email, message, from).deliver end end diff --git a/lib/sms_fu/sms_notifier.rb b/lib/sms_fu/sms_notifier.rb index be312ff..55ecc6f 100644 --- a/lib/sms_fu/sms_notifier.rb +++ b/lib/sms_fu/sms_notifier.rb @@ -1,6 +1,6 @@ class SMSNotifier < ActionMailer::Base def send_sms(recipient, message, sender_email) - mail(:to => recipient, :from => sender_email) do |format| + mail(:to => recipient, :from => sender_email, :subject => '') do |format| format.text { render :text => message } format.html { render :text => message } end |
