diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-25 17:25:59 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-25 17:25:59 +1100 |
commit | 532a21ba4941197a13524ac3f1ce9267a46bec1d (patch) | |
tree | af99935a809b317d0f7f88c4492f99c7b1b9a910 /app/controllers/help_controller.rb | |
parent | 506b848bc60cdaa5c33db73fd897d53c8240fcf4 (diff) |
Update to new mail sending API
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r-- | app/controllers/help_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 573abac63..be9c9f80b 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -49,14 +49,14 @@ class HelpController < ApplicationController end @contact = ContactValidator.new(params[:contact]) if @contact.valid? && !params[:remove] - ContactMailer.deliver_to_admin_message( + ContactMailer.to_admin_message( params[:contact][:name], params[:contact][:email], params[:contact][:subject], params[:contact][:message], @user, @last_request, @last_body - ) + ).deliver flash[:notice] = _("Your message has been sent. Thank you for getting in touch! We'll get back to you soon.") redirect_to frontpage_url return |