Problem with my feedback form

ive been breaking my head to send an email from the feedback form in my
website. Ive followed a few tutorials on rails forum and else where but
i cant get it to work yet. So i want to know where i have been going
wrong.

Here is my code in the view which gets the values for the feedback

<optionvalue=“Excellent”>Excellent
4. VeryGood
5. Fair
6. Poor
7. VeryPoor
8.

<optionvalue=“Excellent”>Excellent
11. VeryGood
12. Fair
13. Poor
14. VeryPoor
15.

here is the action feedback in the controller mailer

  1. def feedback
  2.     if request.post?
    
  3.         begin
    
  4.            Notifier.deliver_feedback(params[:feedback])
    
  5.            flash[:message] = "Feedback sent"
    
  6.           redirect_to :controller => '/site', :action =>
    

‘home’
7. rescue
8. flash[:message] = “Error Sending mail”
9. redirect_to :controller => ‘/site’, :action =>
‘home’
10. end
11. end
12. end

i also created a mailer named Notifier and the contents of the notifier
is as follows

  1. def feedback(feedback)
  2.   @recipients                         = '[email protected]'
    
  3.   @from                               = feedback[:email]
    
  4.   @subject                            = 'Feedback for website'
    
  5.   @body['content']                    = feedback[:content]
    
  6.   @body['design']                     = feedback[:design]
    
  7. end

i created a rhtml file named feedback in views/notifier
the content to be sent in the email

  1. Dear Administrator,
  2. You have got a feedback for the website
  3. Scores
  4. Content : <%= @content %>
  5. Design : <%= @design %>
  6. Usability : <%= @usability %>
  7. Comments : <%= @comments %>

i added these in environment.rb file as follows

i actually removed the word :action_mailer from config.frameworks as
described in a wiki tutorial

  1. Skip frameworks you’re not going to use (only works if using

vendor/rails)

  1. config.frameworks -= [ :action_web_service]

  2. Include your app’s configuration here:

  3. ActionMailer::Base.server_settings = {

  4. :address => “abc”,

  5. :port => 25,

  6. :domain => ‘abc’,

  7. :user_name => “[email protected]”,

  8. :password => “mypass”,

  9. :authentication => :login

  10. }
    

I want to know where i have been going wrong or anything i missed thats
stopping from sending email. Its been 2 days ive been working on this
without any luck. Any help is very much appreciated

sorry for double posting i had to clean the post and i didnt know a way
to edit my post.