Mail sending problem with ActionMailer

hi friends,

i have written settings in environment.rb as follews and have created
necessary models and views for sending mail but mails are not sent.
please help me.

environment.rb coding


ActionMailer::Base.delivery_method = :smtp
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.perform_deliveries = true
  ActionMailer::Base.default_charset = "UTF-8"

  ActionMailer::Base.smtp_settings = { :address => "localhost",
                                       :port => 25,
                                       :authentication => :plain,
                                       :user_name=>"uname",
                                       :password=>"pass"
                                     }

i have comented th line

# config.frameworks -= [ :action_web_service, :action_mailer ]