Configuring ActionMailer - problem - help

I'm following along in AWDWR on how to set up ActionMailer.

However after following the configuration and trying to generate the Mailer files I'm getting the error below. First here is the configuration (which is within the config/environments/development) btw I'm blaming my username and password.

# Base delivery ActionMailer::Base.delivery_method = :smtp | :sendmail | :test

(btw, I'm a bit unsure about the "test" param. As I do want to send the email)

ActionMailer::Base.server_settings = {     :address => "smtp.*********.com",     :port => 25,     :domain => "*********.com",     :authentication => :plain,     :user_name => "**********",     :password => "*******", }

ActionMailer::Base.default_charset = "utf-8"

C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:191:in `load_environment': undefined method ` |' for :smtp:Symbol (NoMethodError)

from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:168:in `load_environment' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reportin g.rb:11:in `silence_warnings' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:165:in `load_environment' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:82:in `process' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:42:in `run' from ./script/../config/../config/environment.rb:13 from C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/commands/generate.rb:1 from C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'from script/generate:3

Worked ................thank you!

Stuart