How to implement email code in RoR?

Sir , I want to implement email section in ma web application…
so i found the method ‘server_setting’ for it…
Following is the method:

config.action_mailer.server_settings = {
:address => “smtp.gmail.com” ,
:port => 25,
:domain => “gmail.com” ,
:authentication => :login,
:user_name => “manish” ,
:password => “belsare”
}

sir but wen i restart my web server following errors are generated:

[root@localhost ksmm]# script/server
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/gem_dependency.rb:119:Warning:
Gem::Dependency#version_requirements is deprecated and will be removed
on or after August 2010. Use #requirement
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:402:in
method_missing': undefined method server_settings=’ for
ActionMailer::Base:Class (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:602:in
send' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:602:in initialize_framework_settings’
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:601:in
each' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:601:in initialize_framework_settings’
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:598:in
each' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:598:in initialize_framework_settings’
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:155:in
process' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in send’
… 7 levels…
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:84
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require’
from script/server:3

what shud i do 2 avoid this problem…
Is it because of the version of rails?